/*
 * PIANOTONES — policy pages.
 *
 * Same tokens, type and chrome as index.html, minus the parts that belong to a
 * launch page: no starfield canvas, no drifting astronaut, no scroll cues. A
 * legal page that animates is harder to read and slower to load for someone who
 * only came to check one line about a cookie.
 *
 * The vignette and the plum ground stay, so this still reads as the same site
 * rather than a bolted-on legal page in someone else's stylesheet.
 */

:root{
  --violet:#481384; --magenta:#AE1C6C; --red:#E11D1D; --orange:#FB7439;
  --plum:#10041E; --ink:#0C0714; --deep:#08030F;
  --gold:#E8C879; --champagne:#C9AE7C;
  --txt:#EAE0F6; --txt-dim:#9d92ac;
  /* Was #716C77. Measured 3.51:1 against the violet wash at the top of these
     pages — which is exactly where "Last updated" and the table headers sit —
     and 3.89:1 further down. Both under the 4.5:1 WCAG 1.4.3 asks of body
     text. #857F8C is the same hue, one step lighter, and clears 4.5:1 on every
     ground on this page (4.64 worst case). Kept in step with index.html. */
  --txt-faint:#857F8C;
  --card:#150A26; --line:rgba(234,224,246,.09);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;
  /* The nav is fixed; without this the skip link lands its target underneath it. */
  scroll-padding-top:86px}
body{
  background:var(--ink);
  /* A single fixed wash instead of the animated starfield: the same depth, none
     of the per-frame cost. */
  background-image:radial-gradient(ellipse at 50% -10%, rgba(72,19,132,.34) 0%, transparent 62%);
  background-attachment:fixed;
  color:var(--txt);font-family:'Inter',sans-serif;font-weight:300;line-height:1.65;
  overflow-x:hidden;
}
::selection{background:var(--violet);color:#fff}
.vignette{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 35%,transparent 0%,rgba(8,3,15,.55) 100%)}

/* ---------- screen-reader-only ---------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- skip link (2.4.1) ---------- */
.skip-link{position:absolute;top:-100px;left:22px;z-index:60;
  font-family:'Orbitron',sans-serif;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;
  background:var(--gold);color:#1a1206;padding:12px 20px;border-radius:0 0 10px 10px;
  text-decoration:none;font-weight:700;transition:top .18s ease}
.skip-link:focus{top:0}

/* ---------- nav (identical to the album page) ---------- */
nav{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  padding:14px 22px;background:linear-gradient(180deg,rgba(8,3,15,.94),rgba(8,3,15,.55));
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.brand{font-family:'Orbitron',sans-serif;font-weight:700;font-size:.95rem;letter-spacing:.28em;color:var(--txt);text-decoration:none}
.brand span{color:var(--gold)}
.nav-right{display:flex;gap:10px;align-items:center}
.nav-link{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--txt-dim);text-decoration:none;
  padding:8px 10px;transition:color .2s;display:inline-flex;align-items:center;min-height:44px}
.nav-link:hover{color:var(--gold)}
/* The pill outline is the only thing that says "control" here — the label is
   two letters — so it needs the 3:1 WCAG 1.4.11 asks of a component boundary.
   rgba(234,224,246,.09) measured 1.18:1. */
#langBtn{font-family:'Orbitron',sans-serif;font-size:.68rem;letter-spacing:.15em;background:transparent;
  border:1px solid rgba(234,224,246,.42);color:var(--txt-dim);padding:7px 13px;border-radius:99px;cursor:pointer;transition:.2s;min-height:38px}
#langBtn:hover{border-color:var(--gold);color:var(--gold)}
@media(max-width:640px){.nav-link{font-size:.66rem;letter-spacing:.12em;padding:8px 4px}}

/* ---------- document ---------- */
.policy{position:relative;z-index:2;max-width:760px;margin:0 auto;padding:130px 22px 40px}
.policy h1{font-family:'Orbitron',sans-serif;font-size:clamp(2rem,6vw,3rem);font-weight:900;letter-spacing:.1em;
  background:linear-gradient(120deg,#fff 20%,var(--gold) 60%,var(--champagne) 85%);
  -webkit-background-clip:text;background-clip:text;color:transparent;margin-bottom:12px}
.updated{font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;color:var(--txt-faint)}
.intro{margin-top:24px;color:var(--txt-dim);font-size:1.02rem;max-width:62ch}

.policy section{margin-top:52px}
.policy h2{font-family:'Orbitron',sans-serif;font-size:.78rem;letter-spacing:.28em;text-transform:uppercase;
  color:var(--orange);font-weight:700;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.policy p{color:var(--txt-dim);font-size:.96rem;margin-bottom:14px;max-width:66ch}
.policy p:last-child{margin-bottom:0}
.policy strong{color:var(--txt);font-weight:500}
.policy em{color:var(--txt);font-style:normal;font-weight:400}
.policy ul{margin:0 0 14px;padding-left:20px;max-width:66ch}
.policy li{color:var(--txt-dim);font-size:.96rem;margin-bottom:9px}
.policy li::marker{color:var(--orange)}
.policy a{color:var(--gold);text-decoration:underline;text-underline-offset:4px}
.policy a:hover{color:#fff}

/* ---------- tables ---------- */
/* Wide tables scroll inside their own box; the page body never scrolls sideways. */
.twrap{overflow-x:auto;margin:18px 0 6px;border:1px solid var(--line);border-radius:14px;background:rgba(21,10,38,.5)}
table{width:100%;border-collapse:collapse;min-width:520px}
th{font-family:'Orbitron',sans-serif;font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;color:var(--txt-faint);
  text-align:left;font-weight:700;padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:bottom;white-space:nowrap}
td{padding:14px 16px;border-bottom:1px solid rgba(234,224,246,.05);vertical-align:top;color:var(--txt-dim);font-size:.87rem;line-height:1.6}
tr:last-child td{border-bottom:0}
/* The name column is an identifier, so it is set in the mono-ish display face
   and kept on one line — it is what someone matches against their browser. */
td:first-child{color:var(--txt);font-weight:500;font-family:'Orbitron',sans-serif;font-size:.72rem;letter-spacing:.04em;white-space:nowrap}

/* ---------- controls ---------- */
.settings-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 24px;margin-top:6px;
  font-family:'Orbitron',sans-serif;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;
  background:transparent;border:1px solid rgba(232,200,121,.45);border-radius:99px;color:var(--gold);
  cursor:pointer;transition:.22s;text-decoration:none}
.settings-btn:hover{background:rgba(232,200,121,.1);border-color:var(--gold);color:var(--gold)}

/* A value that is genuinely not known yet. Loud on purpose: better a visible
   gap than a plausible invented address sitting in a legal document. */
.missing{display:inline-block;font-family:'Orbitron',sans-serif;font-size:.68rem;letter-spacing:.12em;
  color:#fff;background:var(--red);padding:3px 9px;border-radius:4px;text-transform:uppercase}

.contact{margin-top:56px;padding-top:26px;border-top:1px solid var(--line);font-size:.87rem;color:var(--txt-faint)}
.contact a{color:var(--gold)}

/* ---------- footer (identical to the album page) ---------- */
footer{border-top:1px solid var(--line);padding:44px 22px 54px;text-align:center;position:relative;z-index:2;
  background:linear-gradient(180deg,transparent,rgba(8,3,15,.8));margin-top:60px}
/* MARS wordmark: the file is 400x124 (3.23:1, same as the brand book). It used
   to carry width="120" height="26", which squashed it to 4.6:1. Height sets the
   size and width follows, so the proportions cannot drift again. The link is
   padded to a 44px target like the rest of the footer row and goes to the
   MARS site. */
.foot-brand{display:inline-block;padding:6px;margin:0 0 12px;border-radius:4px;line-height:0}
.foot-brand img{display:block;height:32px;width:auto;opacity:.8;transition:opacity .2s}
.foot-brand:hover img,.foot-brand:focus-visible img{opacity:1}
.foot-brand:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.legal{font-size:.68rem;color:var(--txt-faint);max-width:640px;margin:0 auto;line-height:1.8}
.foot-links{display:flex;gap:8px 22px;flex-wrap:wrap;justify-content:center;align-items:center;margin:0 0 22px}
/* The page-wide nav{} rule pins every <nav> to the top of the viewport. The
   footer row is a <nav> too, so since the 2026-08-27 build these links sat
   hidden under the header's blur instead of here. Put them back in the footer. */
footer nav.foot-links{position:static;z-index:auto;padding:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.foot-link{font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--txt-dim);text-decoration:none;
  transition:color .2s;display:inline-flex;align-items:center;min-height:44px;padding:0 2px}
.foot-link:hover{color:var(--gold)}
.foot-link[aria-current="page"]{color:var(--gold)}
/* The kit's own reset leaves its button a different size from the two links
   next to it. One rule, specific enough to win, makes the row a set of peers. */
footer .foot-links button{
  background:none;border:0;cursor:pointer;
  font-family:'Inter',sans-serif;font-size:.7rem;font-weight:300;
  letter-spacing:.16em;text-transform:uppercase;text-decoration:none;
  color:var(--txt-dim);line-height:1.65;
  display:inline-flex;align-items:center;min-height:44px;padding:0 2px}
footer .foot-links button:hover{color:var(--gold)}

/* ---------- focus ---------- */
a:focus-visible,button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} }
