/* TicketQuill legal pages — standalone, zero third-party requests.
   Tokens mirror src/app/globals.css. Fonts are system stacks rather than
   Google Fonts: these pages must not leak visitor IPs to a third party. */

:root {
  color-scheme: dark;
  --ink: #eef2f0;
  --muted: #a6b4b0;
  --line: rgba(213, 225, 222, 0.16);
  --panel: #101114;
  --cyan: #2ee6c0;
  --action: #2ee6c0;
  --warn: #e5c07b;
  --bg: #080b0d;
  --bg-tint: #090c0e;
  --ink-strong: #ffffff;
  --ink-soft: #c6cfcb;
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(115deg, var(--bg) 0%, var(--bg-tint) 52%, var(--bg) 100%);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--cyan); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.shell { max-width: 52rem; margin: 0 auto; padding: 0 1.5rem 6rem; }

/* Header ---------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark:hover { text-decoration: none; }

.brand-pulse {
  width: .72rem;
  height: .72rem;
  background: var(--action);
  border-radius: .18rem;
  box-shadow: 0 0 0 .3rem rgba(46, 230, 192, .13);
  transform: rotate(12deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.site-nav a { color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* Document head --------------------------------------------------------- */

.doc-header { padding: clamp(3rem, 8vw, 5rem) 0 2rem; }

.kicker {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 800;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 1rem 0 1.2rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .82rem;
}

.doc-meta strong { color: var(--ink); font-weight: 700; }

/* Draft banner — REMOVE at publication, together with the version bump.
   See legal/README.md. */

.draft-banner {
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(229, 192, 123, .4);
  border-left: 3px solid var(--warn);
  background: rgba(229, 192, 123, .07);
  color: var(--warn);
  font-size: .88rem;
  line-height: 1.6;
}

.draft-banner strong { display: block; margin-bottom: .3rem; letter-spacing: .04em; text-transform: uppercase; font-size: .74rem; }

/* Body ------------------------------------------------------------------ */

.doc-body { padding-top: 1rem; }

.doc-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 3.2rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.doc-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 1rem; }

.doc-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 2rem 0 .6rem;
}

.doc-body p { margin: 0 0 1.1rem; }
.doc-body strong { color: var(--ink-strong); font-weight: 700; }

.doc-body ul, .doc-body ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.doc-body li { margin-bottom: .55rem; }
.doc-body li::marker { color: var(--cyan); }

.lede { color: var(--ink-soft); font-size: 1.08rem; }

code {
  padding: .12em .38em;
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: var(--panel);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .87em;
  color: var(--ink);
}

.callout {
  margin: 0 0 1.4rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--action);
  background: var(--panel);
}

.callout p:last-child { margin-bottom: 0; }

/* Tables ---------------------------------------------------------------- */

.table-scroll { overflow-x: auto; margin: 0 0 1.6rem; }

table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: .92rem;
}

caption { text-align: left; color: var(--muted); font-size: .82rem; padding-bottom: .6rem; }

th, td {
  text-align: left;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

thead th { background: var(--panel); color: var(--ink); font-weight: 750; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; }
tbody th { color: var(--ink); font-weight: 700; }
td { color: var(--ink-soft); }
.num { text-align: right; }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.site-footer p { margin: 0 0 .5rem; }

/* Index page ------------------------------------------------------------ */

.doc-list { display: grid; gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }

.doc-list a {
  display: block;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--action);
  background: var(--panel);
  color: var(--ink);
}

.doc-list a:hover, .doc-list a:focus-visible { border-color: rgba(46, 230, 192, .5); text-decoration: none; }
.doc-list h2 { font-family: var(--font-display); margin: 0 0 .3rem; font-size: 1.3rem; }
.doc-list p { margin: 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .site-header { min-height: 0; padding: 1.2rem 0; }
}
