/* Shared styles for standalone pages: /privacy, /terms, /contact
   Tokens mirror index.html so the pages match the marketing site. */
:root {
  --royal-blue:   #3F5BD9;
  --periwinkle:   #7A90D6;
  --teal:         #6BB3B1;
  --charcoal:     #1C1C1E;
  --bg-light:     #F5F6F8;
  --white:        #ffffff;
  --text-body:    #4A4A5A;
  --text-muted:   #6B7280;
  --border:       rgba(122,144,214,0.18);

  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  --shadow-sm:  0 2px 12px rgba(63,91,217,0.07);
  --shadow-md:  0 8px 32px rgba(63,91,217,0.11);
  --radius-sm:  8px;
  --radius-md:  16px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--royal-blue); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border-radius: 50px; cursor: pointer; text-decoration: none;
  white-space: nowrap; border: 2px solid transparent;
  transition: all 0.3s var(--ease);
}
.btn-primary {
  padding: 13px 28px; font-size: 0.9rem;
  background: var(--royal-blue); color: var(--white); border-color: var(--royal-blue);
}
.btn-primary:hover {
  background: #3350c8; border-color: #3350c8;
  transform: translateY(-2px); box-shadow: 0 10px 28px rgba(63,91,217,0.38);
}

/* ---------- Nav (always in "scrolled" style) ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  padding: 12px 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--charcoal);
  text-decoration: none; transition: color 0.25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--royal-blue); }

/* ---------- Page header ---------- */
.page-hero {
  background: linear-gradient(135deg, #0d0f1a 0%, #1a2150 60%, #24407a 100%);
  color: var(--white);
  padding: 72px 0 64px;
}
.page-hero-inner { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.page-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.12; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 620px; }
.page-meta { margin-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ---------- Legal content ---------- */
.legal-wrap {
  max-width: 820px; margin: -32px auto 80px; padding: 0 28px;
  position: relative;
}
.legal-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 48px 56px;
}
.toc {
  background: var(--bg-light); border-radius: var(--radius-sm);
  padding: 20px 24px; margin-bottom: 40px;
}
.toc-title {
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px;
}
.toc ol { padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 0.9rem; margin-bottom: 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.legal h2 {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: var(--charcoal); margin: 40px 0 14px; letter-spacing: -0.01em;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600;
  color: var(--charcoal); margin: 24px 0 10px;
}
.legal p, .legal li { color: var(--text-body); font-size: 0.97rem; line-height: 1.78; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal ol { padding-left: 22px; margin-bottom: 16px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--charcoal); }
.callout {
  border-left: 4px solid var(--teal); background: rgba(107,179,177,0.08);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0 22px;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px;
}
.contact-tile {
  background: var(--bg-light); border-radius: var(--radius-sm); padding: 22px;
}
.contact-tile h3 {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600; margin-bottom: 6px;
}
.contact-tile p { font-size: 0.88rem; color: var(--text-body); margin-bottom: 10px; line-height: 1.6; }
.contact-tile a { font-size: 0.9rem; font-weight: 600; word-break: break-word; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--charcoal); }
.field input, .field select, .field textarea {
  font-size: 0.95rem; color: var(--charcoal);
  border: 1px solid rgba(28,28,30,0.16); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(63,91,217,0.15);
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }
.form-actions { margin-top: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); padding: 48px 0 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.09); margin-bottom: 24px;
}
.footer-top img { height: 40px; width: auto; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.38); }
.footer-disc { font-size: 0.75rem; color: rgba(255,255,255,0.28); max-width: 520px; text-align: right; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo img { height: 38px; }
  .nav-links { gap: 16px; }
  .nav-links .nav-hide-sm { display: none; }
  .page-hero { padding: 48px 0 56px; }
  .page-hero-inner, .legal-wrap, .footer-inner { padding: 0 16px; }
  .legal-card { padding: 28px 20px; }
  .toc ol { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disc { text-align: center; max-width: 100%; }
}

@media print {
  .nav, .footer, .toc { display: none; }
  .page-hero { background: none; color: var(--charcoal); padding: 0 0 16px; }
  .page-hero p, .page-meta { color: var(--text-body); }
  .legal-wrap { margin: 0; }
  .legal-card { box-shadow: none; padding: 0; }
}
