/* Shared styles for the TicketPassport legal pages (/privacy, /terms).
   Palette mirrors apps/mobile/lib/theme.ts and apps/landing/src/index.css. */
:root {
  --bg: #0a0b10;
  --bg-deep: #07080d;
  --panel: #0f1119;
  --panel-2: #12141d;
  --text: #f7f8ff;
  --muted: #aeb4c6;
  --muted-2: #838aa0;
  --border: #262c3d;
  --border-soft: #1b2030;
  --accent: #ff5a7a;
  --accent-soft: rgba(255, 90, 122, 0.12);
  --mint: #35f3b5;
  --gold: #ffc960;
  --info: #6ea8ff;
  --radius: 14px;
  --maxw: 820px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.62;
  font-size: 16px;
  min-height: 100vh;
  min-height: 100dvh;
  background-image:
    radial-gradient(ellipse 90% 40% at 50% -6%, rgba(255, 90, 122, 0.16), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(53, 243, 181, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 30%, var(--bg) 100%);
  background-attachment: fixed;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px calc(20px + env(safe-area-inset-right)) 14px calc(20px + env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.header-nav {
  display: flex;
  gap: 18px;
  font-size: 13.5px;
}
.header-nav a {
  color: var(--muted);
}
.header-nav a[aria-current="page"] {
  color: var(--text);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px calc(20px + env(safe-area-inset-right)) 72px calc(20px + env(safe-area-inset-left));
}

.doc-title {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.doc-meta {
  color: var(--muted-2);
  font-size: 13.5px;
  margin-bottom: 24px;
}
.doc-meta strong {
  color: var(--muted);
  font-weight: 600;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ---------- Callouts ---------- */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 14.5px;
  color: var(--muted);
}
.callout strong {
  color: var(--text);
}
.callout.info {
  border-left-color: var(--info);
}
.callout.warn {
  border-left-color: var(--gold);
}
.callout.good {
  border-left-color: var(--mint);
}
.callout .callout-title {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 14.5px;
}

/* Entity / owner-action placeholder — deliberately conspicuous so it is not shipped as-is. */
.placeholder {
  background: rgba(255, 201, 96, 0.14);
  border: 1px dashed var(--gold);
  color: var(--gold);
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 600;
  font-size: 0.92em;
}

/* ---------- Table of contents ---------- */
.toc {
  border: 1px solid var(--border-soft);
  background: rgba(15, 17, 25, 0.6);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 28px 0 40px;
}
.toc h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  margin-bottom: 12px;
  font-weight: 700;
  border: 0;
  padding: 0;
}
.toc ol {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.toc li {
  margin-bottom: 7px;
  break-inside: avoid;
  font-size: 14px;
}
.toc li a {
  color: var(--muted);
}
.toc li a:hover {
  color: var(--text);
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

/* ---------- Section typography ---------- */
section {
  scroll-margin-top: 84px;
}
h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  color: var(--text);
}
h2 .num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}
h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 26px 0 8px;
  color: var(--text);
}
p {
  margin: 12px 0;
  color: #d9dcea;
}
ul,
ol.body-list {
  margin: 12px 0 12px 4px;
  padding-left: 22px;
  color: #d9dcea;
}
li {
  margin: 7px 0;
}
li > ul {
  margin-top: 7px;
}
strong {
  color: var(--text);
  font-weight: 700;
}
em {
  color: var(--text);
  font-style: italic;
}

/* Definition-style lists (purposes, rights, etc.) */
dl {
  margin: 14px 0;
}
dt {
  font-weight: 700;
  color: var(--text);
  margin-top: 14px;
}
dd {
  margin: 4px 0 0;
  color: #d9dcea;
}

/* ---------- Data table (sub-processors) ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin: 18px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 13.5px;
}
thead th {
  text-align: left;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 600;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: #d1d5e4;
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 48px;
}
.site-footer .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px calc(20px + env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom))
    calc(20px + env(safe-area-inset-left));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  color: var(--muted-2);
  font-size: 13px;
}
.site-footer a {
  color: var(--muted);
}
.site-footer .spacer {
  flex: 1 1 auto;
}
.back-top {
  color: var(--muted);
}

/* ---------- Print ---------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-header,
  .site-footer,
  .toc,
  .back-top {
    display: none;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  h2 {
    border-top: 1px solid #ccc;
  }
}
