/* ==========================================================================
   legal.css: shared styles for the standalone pages (privacy.html, terms.html,
   404.html). These pages are copied verbatim by Vite (public/) and do not load
   the main bundle, so the brand tokens are repeated here.
   ========================================================================== */

:root {
  --blue: #103080;
  --blue-deep: #0B2260;
  --paper: #F7F7EF;
  --paper-2: #EFEFE4;
  --lime: #DFFF00;
  --ink: #111111;
  --ink-70: #45453F;
  --ink-50: #6B6B64;
  --line: rgba(17, 17, 17, 0.12);
  --font-display: "League Spartan", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --page-margin: 48px;   /* homepage .container gutter: 48 / 32 (<1024) / 20 (<768) */
  --col: 760px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(1344px + 2 * var(--page-margin)); padding-inline: var(--page-margin); }
@media (max-width: 1023px) { :root { --page-margin: 32px; } }
@media (max-width: 767px) { :root { --page-margin: 20px; } }

/* --- Header -------------------------------------------------------------- */
.lg-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 247, 239, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.lg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.logo__mark svg { width: 58%; height: auto; }
.logo__sora { font-weight: 800; }
.logo__marketing { font-weight: 400; letter-spacing: 0.02em; }
@media (max-width: 767px) { .logo { font-size: 20px; gap: 8px; } .logo__mark { width: 30px; height: 30px; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 32px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.125rem; }
@media (max-width: 767px) { .btn { padding: 0 16px; font-size: 0.9375rem; } .btn--lg { padding: 0 24px; } }

/* --- Document ------------------------------------------------------------ */
.lg-main { flex: 1; padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }

.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.lg-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--blue); }

.lg-doc h1,
.lg-doc h2,
.lg-doc h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
.lg-doc h1 {
  margin: 0;
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lg-meta { margin: 18px 0 0; font-size: 0.9375rem; color: var(--ink-50); }
.lg-lead {
  margin: 28px 0 0;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  font-size: 1.0625rem;
  color: var(--ink-70);
}

.lg-toc {
  margin: 36px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}
.lg-toc h2 { margin: 0 0 10px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.lg-toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 28px; font-size: 0.9375rem; line-height: 1.5; }
.lg-toc li { padding-block: 4px; break-inside: avoid; }
.lg-toc a { color: var(--ink-70); text-decoration-color: transparent; }
.lg-toc a:hover { color: var(--blue); text-decoration-color: currentColor; }

.lg-doc section { scroll-margin-top: 88px; }
.lg-doc h2 {
  margin: 52px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lg-doc h3 { margin: 28px 0 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.lg-doc p,
.lg-doc ul,
.lg-doc ol:not(.lg-toc ol) { margin: 14px 0 0; }
.lg-doc ul { padding-left: 1.25em; }
.lg-doc li { margin-top: 6px; }
.lg-doc li::marker { color: var(--blue); }
.lg-doc strong { font-weight: 600; color: var(--ink); }
.lg-doc p, .lg-doc li { color: var(--ink-70); overflow-wrap: anywhere; }

.lg-contact {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.lg-contact p { margin: 4px 0 0; }
.lg-contact p:first-child { margin-top: 0; }

/* --- Footer -------------------------------------------------------------- */
.lg-footer { background: var(--ink); color: #BDBDB5; }
.lg-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
  font-size: 0.875rem;
}
.lg-footer p { margin: 0; }
.lg-footer ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.lg-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #BDBDB5;
  text-decoration-color: transparent;
}
.lg-footer a:hover,
.lg-footer a:focus-visible,
.lg-footer a[aria-current="page"] { color: #fff; text-decoration-color: currentColor; }
.lg-footer :focus-visible { outline-color: var(--lime); }

/* --- 404 ----------------------------------------------------------------- */
.nf {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(48px, 10vw, 120px);
  text-align: center;
}
.nf__inner { max-width: 620px; }
.nf__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 26px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(16, 48, 128, 0.6);
}
.nf__mark svg { width: 62px; height: auto; }
.nf__code {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.nf h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.nf h1 .dot { color: var(--blue); }
.nf p { margin: 18px auto 0; max-width: 44ch; color: var(--ink-70); }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

@media (max-width: 520px) {
  .lg-header__inner { min-height: 60px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo__mark { width: 28px; height: 28px; }
  .lg-header .btn { padding: 0 16px; font-size: 0.875rem; }
  .lg-toc { padding: 18px 18px; }
  .lg-lead, .lg-contact { padding: 18px; }
  .nf__actions { flex-direction: column; }
  .nf__actions .btn { width: 100%; }
  .lg-footer__inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 16px; }
}

@media print {
  .lg-header, .lg-footer, .skip, .lg-toc { display: none; }
  body { background: #fff; }
}

/* TOC overrides (beat the generic .lg-doc h2 / li rules). */
.lg-doc .lg-toc h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
.lg-doc .lg-toc ol { margin: 0; }
.lg-doc .lg-toc li { margin: 0; }
.lg-meta span { white-space: nowrap; }

/* Cookie names in the privacy policy (Meta Pixel section). */
.lg-doc code { font-size: 0.92em; padding: 0.05em 0.35em; border-radius: 4px; background: rgba(16, 48, 128, 0.08); }
