/* Shared chrome for standalone legal pages — aligned with AMLX “original” premium header */

:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-nav-underline: linear-gradient(90deg, #7c3aed 0%, #9333ea 45%, #6366f1 100%);
  --bg-canvas: #0b0b0c;
  --bg-panel: #121214;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.72);
  --text-dim: rgba(248, 250, 252, 0.5);
  --header-premium-bg: linear-gradient(180deg, #18181b 0%, #101012 48%, #09090b 100%);
  --header-premium-border: rgba(255, 255, 255, 0.07);
  --header-premium-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --btn-premium-grad: linear-gradient(135deg, #7c3aed, #9333ea 50%, #6366f1);
  --btn-premium-grad-hover: linear-gradient(135deg, #8b5cf6, #a855f7 48%, #818cf8);
  --btn-premium-border: rgba(196, 181, 253, 0.45);
  --btn-premium-shadow: 0 2px 14px rgba(124, 58, 237, 0.38);
  --btn-radius-lg: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars — match main app (original / violet rail) */
html {
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: #6366f1 #0b0b0e;
}

*::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

*::-webkit-scrollbar-track {
  background: #0b0b0e;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed 0%, #9333ea 48%, #6366f1 100%);
  border: 2px solid #0b0b0e;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(124, 58, 237, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6 0%, #a855f7 50%, #818cf8 100%);
}

a {
  color: #c4b5fd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-height: 68px;
  padding: 0 24px;
  background: var(--header-premium-bg);
  border-bottom: 1px solid var(--header-premium-border);
  box-shadow: var(--header-premium-inset), 0 16px 48px rgba(0, 0, 0, 0.45);
}

.legal-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.legal-header .logo:hover {
  text-decoration: none;
}

.legal-header .logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fafafa;
}

.legal-header .logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-left: auto;
}

.legal-header-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 252, 0.72);
  padding: 6px 8px 9px;
  border-radius: 5px;
  text-decoration: none;
}

.legal-header-nav a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--font-nav-underline);
  opacity: 0;
  transform: scaleX(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.legal-header-nav a:hover::after,
.legal-header-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.legal-header-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.legal-header-nav a.is-active {
  color: #fff;
  background: rgba(124, 58, 237, 0.28);
}

.legal-header-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.legal-header-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: var(--btn-radius-lg);
  border: 1px solid var(--btn-premium-border);
  background: var(--btn-premium-grad);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--btn-premium-shadow);
  white-space: nowrap;
}

.legal-header-cta:hover {
  background: var(--btn-premium-grad-hover);
  filter: brightness(1.06);
  text-decoration: none;
}

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.legal-main h1 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--text-dim);
}

.legal-main h2 {
  margin: 28px 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.legal-main p,
.legal-main li {
  color: var(--text-secondary);
}

.legal-main ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.legal-main li {
  margin-bottom: 8px;
}

.legal-footer {
  margin-top: auto;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
}

.legal-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.legal-footer-links a {
  color: rgba(248, 250, 252, 0.65);
  font-weight: 600;
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-form {
  margin-top: 28px;
  padding: 22px 22px 24px;
  border-radius: 12px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.12) 0%, rgba(18, 18, 20, 0.92) 42%, rgba(12, 12, 14, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.contact-field {
  margin-bottom: 16px;
}

.contact-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 252, 0.82);
  margin-bottom: 6px;
}

.contact-req {
  color: #f472b6;
}

.contact-opt {
  font-weight: 600;
  color: var(--text-dim);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 1.25em;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(167, 243, 208, 0.95);
}

.contact-submit {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: var(--btn-radius-lg);
  border: 1px solid var(--btn-premium-border);
  background: var(--btn-premium-grad);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--btn-premium-shadow);
}

.contact-submit:hover:not(:disabled) {
  background: var(--btn-premium-grad-hover);
  filter: brightness(1.06);
}

.contact-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .legal-header {
    padding: 10px 14px 12px;
  }

  .legal-header-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .legal-main {
    padding: 28px 16px 40px;
  }

  .contact-form {
    padding: 18px 16px 20px;
  }
}
