/* Pile. Web & Design: shared styles for the legal pages (privacy, terms, accessibility).
   Same tokens, type and logo as index.html, so these pages read as part of the site. */
:root {
  --bg: #050608; --bg2: #08090d; --panel: #0d0f15; --panel2: #12151d; --line: #1d212c; --line2: #2a2f3d;
  --ink: #f4f6fb; --text: #c7cddb; --muted: #8d95a8; --dim: #788094;
  --blue: #2d6bff; --blue2: #5a8dff; --red: #ff2d55; --red2: #ff5c7a;
  --grad: linear-gradient(115deg, var(--blue2) 0%, var(--blue) 40%, var(--red) 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* header (same logo as the homepage) */
header { position: sticky; top: 0; z-index: 50; background: rgba(5, 6, 8, .86); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .word { display: block; font: 800 23px/1 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.03em; }
.logo .word i { color: var(--red); font-style: normal; }
.logo .tag { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--blue2); margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line2); border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; }
.back:hover { border-color: var(--blue2); color: var(--ink); }

/* document */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 24px 90px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue2); }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--grad); }
h1 { color: var(--ink); font: 800 clamp(38px, 6vw, 60px)/1.04 "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; letter-spacing: -.04em; margin: 16px 0 14px; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
h2 { color: var(--ink); font-size: 25px; line-height: 1.25; letter-spacing: -.02em; margin: 52px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
h3 { color: var(--ink); font-size: 19px; margin: 28px 0 8px; }
p, li { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
strong { color: var(--ink); }
.lead { font-size: 19px; color: var(--text); }
.summary { background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 22px 26px 8px; margin: 26px 0 8px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 26px; margin: 22px 0 10px; }
.toc p { color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; columns: 2; column-gap: 34px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { display: inline-block; padding: 2px 0; }   /* 26px+ tap targets (WCAG 2.5.8) */
table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line2); }
th { color: var(--ink); background: var(--panel); }
.table-wrap { overflow-x: auto; }

/* drafting markers: the build refuses to publish a page that still contains them */
.draft-banner { border: 1px solid #b8860b; background: #1d1606; color: #ffe2a3; border-radius: 14px; padding: 14px 18px; font-size: 15px; margin: 0 0 26px; }
.owner-review { display: block; border-left: 4px solid #e0a72e; background: #1a1407; color: #ffe2a3; border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 10px 0 16px; font-size: 15px; }
.owner-review::before { content: "OWNER REVIEW: "; font-weight: 800; letter-spacing: .04em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--dim); font-size: 14px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; display: inline-block; padding: 3px 0; }
.foot a:hover { color: var(--ink); }
.foot a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }

@media (max-width: 640px) {
  .doc { padding-top: 40px; }
  .toc ol { columns: 1; }
  .back span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
