/* ClemenTiny legal pages ~ shares Clementine's brand tokens verbatim so the
   family reads as one thing. Values copied from
   site/clementine.goodtimes.gg/index.html in the Clementine repo; if the brand
   moves there, move it here too.

   One stylesheet for both pages rather than a style block each, because two
   copies of a token list is two chances to drift. */

:root {
  --night: #0f0c1a;         /* = goodtimes.gg --bg */
  --night-2: #14101f;
  --soft: #171326;          /* = goodtimes.gg --surface */
  --ginger: #ff8a2b;        /* the cat */
  --ember: #ff6a00;         /* deeper orange */
  --violet: #a855f7;        /* the neon */
  --violet-dim: #7c3fd4;
  --cream: #f0ecf8;
  --tan: #b9b1cf;
  --line: rgba(233, 220, 255, 0.10);
  --line-2: rgba(233, 220, 255, 0.06);
  --warm-glow: linear-gradient(120deg, var(--ginger) 0%, var(--ember) 55%, var(--violet) 100%);
  --disp: 'Exo 2', 'Arial Black', system-ui, sans-serif;
  --body: 'Outfit', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Courier New', monospace;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ginger); color: var(--night); }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* warm ambient wash + faint server-rack scanlines, as on clementine.goodtimes.gg */
.amber-wash, .racklines { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.amber-wash {
  background:
    radial-gradient(60vw 40vw at 78% -6%, rgba(255,138,43,0.14), transparent 60%),
    radial-gradient(50vw 40vw at 10% 8%, rgba(168,85,247,0.08), transparent 60%);
}
.racklines {
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 3px, rgba(233,220,255,0.014) 3px 4px);
  opacity: 0.7;
}
main, nav, footer { position: relative; z-index: 1; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.6rem;
  background: linear-gradient(to bottom, rgba(15,12,26,0.97) 0%, rgba(15,12,26,0.92) 62%, rgba(15,12,26,0) 100%);
  backdrop-filter: blur(10px);
}
nav .brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
nav .brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 9px rgba(168,85,247,0.9);
}
nav .brand .name {
  font-family: var(--disp); font-weight: 900; font-style: italic; font-size: 1.05rem;
  letter-spacing: 0.01em; text-transform: uppercase;
  background: var(--warm-glow); -webkit-background-clip: text; background-clip: text; color: transparent;
}
nav .links { display: flex; gap: 1.6rem; align-items: center; }
nav .links a { color: var(--tan); text-decoration: none; transition: color 0.2s; }
nav .links a:hover, nav .links a:focus-visible { color: var(--cream); }
nav .links a:focus-visible { outline: 2px solid var(--ginger); outline-offset: 4px; border-radius: 2px; }
nav .nav-cta { color: var(--ginger) !important; }
@media (max-width: 680px) { nav .links a.hideable { display: none; } }

/* ---------- LEGAL BODY ---------- */
main.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 8rem 1.6rem 5rem;
}

.legal .eyebrow { color: var(--violet); margin-bottom: 1.1rem; }

.legal h1 {
  font-family: var(--disp); font-weight: 900; font-style: italic;
  font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 0.95;
  text-transform: uppercase; letter-spacing: -0.01em;
  background: var(--warm-glow); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(255,106,0,0.28));
  text-wrap: balance;
}

.legal .updated { color: var(--tan); font-size: 0.92rem; margin: 0.9rem 0 2.4rem; }

.legal .lede {
  border-left: 2px solid var(--ginger);
  background: linear-gradient(90deg, rgba(255,138,43,0.06), transparent 70%);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 0 0 2.6rem;
  color: var(--cream);
  font-size: 1.05rem;
}

.legal h2 {
  font-family: var(--disp); font-weight: 700; font-style: italic;
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--ginger);
  margin: 3rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-2);
}

.legal p { margin: 0 0 1rem; color: var(--tan); }
.legal p strong { color: var(--cream); font-weight: 500; }
.legal a { color: var(--ginger); text-decoration: none; border-bottom: 1px solid rgba(255,138,43,0.35); }
.legal a:hover { color: var(--cream); border-bottom-color: var(--cream); }
.legal a:focus-visible { outline: 2px solid var(--ginger); outline-offset: 3px; border-radius: 2px; }

.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; color: var(--tan); }
.legal li { margin: 0.4rem 0; }
.legal li strong { color: var(--cream); font-weight: 500; }

.legal code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--soft); border: 1px solid var(--line-2);
  padding: 0.1rem 0.4rem; border-radius: 4px; color: var(--cream);
}

/* data table ~ surface card, matching the module cards on the main site */
.legal table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0;
  background: var(--soft); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; font-size: 0.95rem;
}
.legal th, .legal td {
  text-align: left; padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line-2); vertical-align: top;
}
.legal tr:last-child td { border-bottom: none; }
.legal th {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ginger); font-weight: 700;
  background: rgba(255,138,43,0.04);
}
.legal td { color: var(--tan); }
.legal td:first-child { color: var(--cream); }

@media (max-width: 560px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  .legal tr:last-child { border-bottom: none; }
  .legal td { border: none; padding: 0.25rem 0.95rem; }
  .legal td:first-child { padding-top: 0.7rem; font-weight: 500; }
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.6rem 3rem;
  max-width: 48rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  color: var(--tan); font-size: 0.9rem;
}
footer .fam { display: flex; gap: 1.2rem; flex-wrap: wrap; }
footer a { color: var(--tan); text-decoration: none; }
footer a:hover { color: var(--ginger); }
