/* Shared styles for Tau's legal pages (privacy, terms, cookies, delete-account).
   Colours and type follow the design tokens in landing/index.html. */
:root {
  --ink: #050a17; --ink-2: #0b1428; --card: #0f1a31; --line: #22304f;
  --paper: #f5f5fb; --soft: #d3dcf2; --muted: #b9c4dc; --faint: #7f8cab;
  --mint: #95f3dc; --sky: #8ccfff; --gold: #f4c99c; --coral: #ff9f8a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 17px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--mint); }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header: Tau mark linking home */
.site-head { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand img { width: 40px; height: auto; }
.brand span { font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.site-head .home { color: var(--muted); font-size: 15px; }

/* Document */
main { padding: 36px 0 56px; }
.eyebrow {
  display: inline-block; padding: 5px 10px; border-radius: 8px; margin-bottom: 14px;
  background: rgba(149, 243, 220, .12); color: var(--mint); font-weight: 700; font-size: 13.5px;
}
h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 800; }
h2 { font-size: clamp(22px, 3.6vw, 27px); line-height: 1.25; letter-spacing: -.015em; margin: 44px 0 10px; font-weight: 800; scroll-margin-top: 16px; }
h3 { font-size: 18.5px; line-height: 1.35; margin: 26px 0 6px; font-weight: 700; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin: 0 0 6px; }
li::marker { color: var(--faint); }
strong { color: var(--paper); }
.lead { font-size: 18.5px; color: var(--soft); }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.muted { color: var(--muted); }
code {
  font: 14.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  overflow-wrap: anywhere;
}
hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .08); margin: 40px 0; }

/* Contents box */
.toc { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 0 8px; }
.toc b { display: block; margin-bottom: 6px; font-size: 15px; color: var(--muted); font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; font-size: 16px; }
.toc li { margin: 3px 0; }

/* Callouts */
.callout {
  background: rgba(140, 207, 255, .08); border: 1px solid rgba(140, 207, 255, .3);
  border-radius: 14px; padding: 14px 18px; margin: 18px 0;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.warn { background: rgba(244, 201, 156, .08); border-color: rgba(244, 201, 156, .4); }
.placeholder {
  background: rgba(244, 201, 156, .14); color: var(--gold); border-radius: 6px; padding: 1px 6px;
  font-weight: 600;
}

/* Tables: a normal grid on wide screens, stacked cards on phones. */
.table-wrap { margin: 16px 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--soft); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-size: 14px; font-weight: 700; border-bottom: 1.5px solid var(--line); }
tbody th { font-weight: 700; }
td code, th code { font-size: 13.5px; }
@media (max-width: 640px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 6px 14px; margin: 0 0 12px;
  }
  table.stack th, table.stack td { border: 0; padding: 6px 0; }
  table.stack tbody th { font-size: 16.5px; padding-top: 8px; }
  table.stack td[data-label]::before {
    content: attr(data-label); display: block; color: var(--faint); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1px;
  }
}

/* Panels, forms and buttons (delete-account page) */
.panels { display: grid; gap: 16px; margin: 20px 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.panel h2 { margin-top: 0; font-size: 22px; }
.panel > p:last-child { margin-bottom: 0; }
.field { display: block; margin: 0 0 12px; }
.field span { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input[type=email], input[type=password] {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--ink-2); color: var(--paper); font: inherit;
}
input::placeholder { color: var(--faint); }
input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(149, 243, 220, .18); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800;
  border: 1.5px solid transparent; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: linear-gradient(90deg, var(--mint), var(--sky)); color: var(--ink); }
.btn.ghost { background: var(--ink-2); color: var(--paper); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { border-color: var(--mint); }
.btn.danger { background: var(--coral); color: var(--ink); }
.btn.link {
  min-height: 0; padding: 0; background: none; border: 0; color: var(--sky); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.btn-row .btn { flex: 1 1 200px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14px; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.status { min-height: 1.6em; margin: 10px 0 0; font-weight: 600; font-size: 15.5px; color: var(--soft); }
.status:empty { margin: 0; min-height: 0; }
.status.error { color: var(--coral); }
.status.ok { color: var(--mint); }
.signed-in { font-size: 15.5px; color: var(--muted); margin-bottom: 14px; overflow-wrap: anywhere; }
.signed-in strong { color: var(--paper); }
.notice {
  border-radius: 14px; padding: 14px 16px; margin: 0 0 14px;
  background: rgba(255, 159, 138, .1); border: 1.5px solid rgba(255, 159, 138, .45);
}
.notice.good { background: rgba(149, 243, 220, .1); border-color: rgba(149, 243, 220, .4); }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
[hidden] { display: none !important; }

/* Footer */
.site-foot { padding: 26px 0 40px; color: var(--faint); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.site-foot nav a { color: var(--muted); }
.site-foot nav a[aria-current=page] { color: var(--paper); text-decoration: none; font-weight: 700; }
.site-foot p { margin: 4px 0; }
.site-foot p a { color: var(--muted); }

@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .toc { display: none; }
  a { color: #000; }
  h1, h2, h3, strong { color: #000; }
}
