/* ============================================================================
   Seax Enterprises — legal / support pages
   Shared shell for the per-app Privacy / Terms / Support / Delete-account pages.
   Inherits the umbrella site's Seax brand (navy / steel / silver), theme-aware
   across all three states (explicit light, explicit dark, and system default).
   Each app page sets --ac to its accent (violet / rose / brass).
   ============================================================================ */

:root {
  /* light — off-white & steel navy (Seax brand) */
  --ground: #F4F3EC;
  --surface: #FFFFFF;
  --surface-2: #ECEDE6;
  --hairline: #D8DCDD;
  --hairline-soft: #E7E8E2;
  --ink: #002B4B;
  --body: #37444E;
  --muted: #6C7883;
  --steel: #0B5885;
  --steel-soft: #547B9C;
  --steel-tint: rgba(11, 88, 133, 0.10);
  --brand-ink: #FFFFFF;
  --shadow: 20px 30px 60px -34px rgba(0, 24, 48, 0.26);
  --shadow-soft: 0 1px 0 rgba(0, 24, 48, 0.03), 0 18px 40px -30px rgba(0, 24, 48, 0.22);

  /* per-app accents (overridden per section) — default to steel */
  --art: #6E43D1;
  --doll: #BE3B76;
  --lure: #9C7727;
  --ac: var(--steel);
  --ac-ink: var(--brand-ink);
  --ac-tint: var(--steel-tint);

  --maxw: 1120px;
  --prose: 46rem;
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
}

:root:not([data-theme="light"]) { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0A121B;
    --surface: #101B27;
    --surface-2: #16232F;
    --hairline: #24333F;
    --hairline-soft: #1A2733;
    --ink: #EAEEF1;
    --body: #ADB9C3;
    --muted: #7C8894;
    --steel: #74B0DC;
    --steel-soft: #9AC4E6;
    --steel-tint: rgba(116, 176, 220, 0.14);
    --brand-ink: #06121C;
    --shadow: 24px 34px 70px -34px rgba(0, 0, 0, 0.72);
    --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -30px rgba(0, 0, 0, 0.6);
    --art: #9B72F0;
    --doll: #E866A0;
    --lure: #D0AA5A;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0A121B;
  --surface: #101B27;
  --surface-2: #16232F;
  --hairline: #24333F;
  --hairline-soft: #1A2733;
  --ink: #EAEEF1;
  --body: #ADB9C3;
  --muted: #7C8894;
  --steel: #74B0DC;
  --steel-soft: #9AC4E6;
  --steel-tint: rgba(116, 176, 220, 0.14);
  --brand-ink: #06121C;
  --shadow: 24px 34px 70px -34px rgba(0, 0, 0, 0.72);
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -30px rgba(0, 0, 0, 0.6);
  --art: #9B72F0;
  --doll: #E866A0;
  --lure: #D0AA5A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

a { color: var(--steel); text-decoration-color: color-mix(in srgb, var(--steel) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--ground);
  padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 2px 8px -3px rgba(0, 24, 48, 0.4); flex: none; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .nm { font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.16em; color: var(--ink); }
.brand .ent { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 0.55rem; letter-spacing: 0.34em; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 26px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--hairline); background: transparent; color: var(--muted);
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--ac); border-color: var(--ac); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- page hero ---------- */
.page-hero { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(24px, 4vw, 44px); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--ac), transparent 72%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ac);
  margin-bottom: 14px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 4px var(--ac-tint); }
.page-hero h1 { font-size: var(--step-3); font-weight: 600; }
.page-hero .sub { color: var(--muted); font-size: var(--step-1); margin-top: 12px; max-width: 44rem; }

/* ---------- prose ---------- */
main { padding-bottom: clamp(48px, 8vw, 96px); }
.prose { max-width: var(--prose); margin-inline: auto; }
.prose .meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--muted);
  padding: 14px 0 22px; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 26px;
}
.prose .meta b { color: var(--body); font-weight: 500; }
.prose h2 {
  font-size: var(--step-2); margin-top: 2.4em; margin-bottom: 0.5em; padding-top: 0.3em;
  scroll-margin-top: 90px;
}
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; margin-bottom: 0.4em; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5em; margin-bottom: 0.55em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0.15em; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ac); opacity: 0.85;
}
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { font-weight: 500; }

.lead {
  font-size: var(--step-1); color: var(--body); line-height: 1.55;
  border-left: 2px solid var(--ac); padding-left: 18px; margin: 0 0 1.6em;
}

/* callout — "short version" / warning boxes */
.callout {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  padding: clamp(18px, 3vw, 26px); margin: 1.6em 0; box-shadow: var(--shadow-soft);
}
.callout.accent { border-left: 3px solid var(--ac); }
.callout.warn {
  border-left: 3px solid var(--doll);
  background: color-mix(in srgb, var(--doll) 6%, var(--surface));
}
.callout h3 { margin-top: 0; }
.callout ul { margin-bottom: 0; }
.callout > :last-child { margin-bottom: 0; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow-soft); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 34rem; }
thead th {
  background: var(--surface-2); color: var(--ink); text-align: left;
  font-family: "Hanken Grotesk", sans-serif; font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); vertical-align: top; background: var(--surface); }
tbody tr:last-child td { border-bottom: none; }
td .no { color: var(--steel-soft); font-weight: 600; }

/* ---------- support form ---------- */
.support-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; max-width: 60rem; margin-inline: auto; }
@media (max-width: 780px) { .support-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: clamp(22px, 3.5vw, 32px); box-shadow: var(--shadow-soft);
}
.card h2 { margin-top: 0; font-size: var(--step-1); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; letter-spacing: 0.01em; }
.field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.96rem; color: var(--ink);
  background: var(--ground); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 11px 13px; transition: border-color 0.2s;
}
.field select:focus, .field textarea:focus { outline: none; border-color: var(--ac); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-weight: 600; font-size: 0.96rem; cursor: pointer;
  background: var(--ac); color: var(--ac-ink); border: none; border-radius: 11px;
  padding: 12px 22px; transition: transform 0.15s, box-shadow 0.2s; width: 100%;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px var(--ac); }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.faq-item { padding: 15px 0; border-bottom: 1px solid var(--hairline-soft); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 5px; font-size: 1rem; }
.faq-item p { margin: 0; font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline-soft); background: var(--surface); padding-block: clamp(36px, 6vw, 60px); }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand .nm { font-weight: 700; letter-spacing: 0.16em; color: var(--ink); font-size: 0.95rem; }
.footer-brand .ent { font-family: "IBM Plex Mono", monospace; font-size: 0.55rem; letter-spacing: 0.32em; color: var(--muted); margin-top: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--ink); }
.footer-tag { color: var(--muted); font-size: 0.92rem; margin: 12px 0 0; max-width: 32ch; }
.footer-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hairline-soft); display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.footer-legal p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; color: var(--steel); text-decoration: none; font-weight: 500; }
.back-link:hover { color: var(--ink); gap: 10px; transition: gap 0.2s; }
