/* Legal pages — brand tokens and type system mirrored from index.html; self-contained, no CDN */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-v26-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../assets/fonts/nunito-v26-latin-900.woff2") format("woff2"); }

:root {
  --amber:        #F59E0B;
  --amber-rgb:    245, 158, 11;
  --amber-hover:  #D97706;
  --amber-active: #B45309;
  --amber-dark:   #92400E;
  --cream:        #FFFBF5;
  --cream-2:      #FFF7E8;
  --cream-3:      #FEF3C7;
  --ink:          #1F2937;
  --muted:        #6B7280;
  --subtle:       #667085;
  --sky:          #0EA5E9;

  --line:      rgba(245, 158, 11, 0.20);
  --line-soft: rgba(245, 158, 11, 0.10);

  --display: "Nunito", ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--sans); color: var(--ink);
  background: var(--cream);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* ambient gradient as a fixed backdrop; background-attachment: fixed repaints on scroll and iOS ignores it */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 50%, var(--cream-3) 100%);
}
::selection { background: rgba(var(--amber-rgb), 0.25); color: var(--amber-dark); }
a:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }

/* ---------------- header ---------------- */
.top-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand .name { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--amber-dark); letter-spacing: -0.03em; }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 0.65rem;
  font: 700 0.96rem/1 var(--sans); color: #fff; text-decoration: none;
  background: var(--amber-active); box-shadow: 0 10px 24px rgba(180, 83, 9, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-solid:hover { transform: translateY(-2px); background: var(--amber-dark); box-shadow: 0 14px 30px rgba(180, 83, 9, 0.28); }
@media (max-width: 600px) { .top-nav { padding: 16px 22px; } }

/* ---------------- content ---------------- */
.legal-page { padding: 56px 0 64px; }
.legal-page .container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 40px; }
.legal-page h1, .legal-page h2, .legal-page h3 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink);
}
.legal-page h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.12; }
.legal-updated { margin: 8px 0 40px; color: var(--subtle); font-size: 0.88rem; }
.legal-page h2 { font-size: 1.35rem; margin: 36px 0 4px; }
.legal-page h3 { font-size: 1.05rem; margin: 24px 0 2px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.legal-page p { margin-top: 10px; }
.legal-page ul { margin-top: 10px; padding-left: 1.25rem; }
.legal-page li + li { margin-top: 8px; }
.legal-page strong { color: var(--ink); }
.legal-page .privacy-assurance {
  color: var(--ink); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.legal-page a { color: var(--amber-dark); font-weight: 650; text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-page code { padding: 0.15rem 0.4rem; border-radius: 4px; background: var(--cream-3); color: var(--amber-dark); font-size: 0.85em; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 26px 0 40px; }
.site-footer .container {
  width: 100%; max-width: 760px; margin: 0 auto; padding: 0 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  color: var(--subtle); font-size: 0.82rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer a { color: var(--subtle); text-decoration: none; transition: color 0.25s var(--ease); }
.site-footer a:hover { color: var(--amber-hover); }

@media (max-width: 600px) {
  .legal-page .container, .site-footer .container { padding: 0 22px; }
}
