/* Shared styles for the privacy, terms and 404 pages (same brand as the homepage) */
:root {
  --navy: #1c0f6f; --navy-deep: #140b52; --red: #cd081a; --red-600: #b00716;
  --bg: #ffffff; --surface: #f5f6fb; --ink: #16132f; --muted: #595d78;
  --border: rgba(28, 15, 111, 0.13); --accent: #1c0f6f;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-head: "Sora", "Inter", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0a0920; --surface: #11102c; --ink: #eef0fb; --muted: #a7abcb;
  --border: rgba(255, 255, 255, 0.12); --accent: #9a8dff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ff-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* header */
.site-head { border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding-block: 10px; }
.logo { display: inline-flex; border-radius: 9px; }
.logo img { height: 50px; width: auto; display: block; }
:root[data-theme="dark"] .logo { background: #fff; padding: 6px 10px; }
.back { font-family: var(--ff-head); font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; white-space: nowrap; }
.back:hover { border-color: var(--accent); color: var(--accent); }

/* legal documents */
.doc { max-width: 760px; padding-block: 56px 80px; }
.doc h1 { font-family: var(--ff-head); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.doc .meta { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.doc .lead { margin: 28px 0 0; font-size: 1.08rem; }
.doc h2 { font-family: var(--ff-head); font-size: 1.3rem; letter-spacing: -0.01em; margin: 2.4rem 0 .6rem; }
.doc p, .doc li { font-size: 1.02rem; line-height: 1.75; }
.doc p { margin: .8rem 0; }
.doc ul { padding-left: 1.3rem; margin: .8rem 0; }
.doc li { margin: .45rem 0; }
.doc .contact-box { margin-top: 1rem; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; font-style: normal; line-height: 1.8; }

/* footer */
.site-foot { border-top: 1px solid var(--border); background: var(--surface); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px; font-size: .9rem; color: var(--muted); }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { color: var(--ink); }

/* 404 page: one deliberate navy look, same hero as the homepage */
.nf { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; color: #fff; padding: 32px max(20px, env(safe-area-inset-left, 0px)); background: radial-gradient(120% 120% at 85% -10%, #3321a8 0%, var(--navy) 45%, var(--navy-deep) 100%); }
.nf-inner { max-width: 520px; display: grid; justify-items: center; gap: 22px; }
.nf .logo { background: #fff; padding: 8px 14px; border-radius: 12px; }
.nf .nf-code { margin: 0; color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; letter-spacing: -0.04em; }
.nf .nf-code::after { content: ""; display: block; width: 64px; height: 6px; border-radius: 3px; background: var(--red); margin: 16px auto 0; }
.nf h1 { margin: 0; font-family: var(--ff-head); font-size: clamp(1.5rem, 4.5vw, 2rem); line-height: 1.2; text-wrap: balance; }
.nf p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 1.05rem; }
.nf .cta { display: inline-flex; margin-top: 6px; font-family: var(--ff-head); font-weight: 600; font-size: 1rem; text-decoration: none; background: var(--red); color: #fff; padding: 14px 26px; border-radius: 10px; box-shadow: 0 8px 20px -8px rgba(205, 8, 26, .6); }
.nf .cta:hover { background: var(--red-600); }
.nf :focus-visible { outline-color: #fff; }

@media (max-width: 560px) {
  .doc { padding-block: 40px 64px; }
  .logo img { height: 44px; }
  .site-foot .wrap { flex-direction: column; }
}
