/* Shared styles for /privacy and /tos. Tokens mirror index.html. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafaf8;
  --fg: #0e0e0e;
  --accent: #e60000;
  --muted: #6e6e6e;
  --rule: #e4e4e0;
  --inset: clamp(24px, 8vw, 140px);
  --measure: 68ch;
  color-scheme: light;
}

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

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

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: var(--inset);
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Same brand mark as the homepage, static and fainter so it never fights the text. */
.mark {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 0;
  height: 85vh;
  transform: translate(-28%, 34%);
  pointer-events: none;
  user-select: none;
}

.mark svg { display: block; height: 100%; width: auto; }
.mark .mark-arc { fill: var(--accent); opacity: 0.04; }
.mark .mark-dot { fill: var(--fg); opacity: 0.03; }

header, main, footer { position: relative; z-index: 1; }

header { margin-bottom: 3.5rem; }

.home { line-height: 0; }

/* Same lockup geometry as the homepage, at header size. */
.lockup {
  --cap: 14px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--cap) * 0.9);
}

.lockup img { display: block; width: auto; }
.lockup-havas { height: var(--cap); }
.lockup-converged { height: calc(var(--cap) / 0.575); }

.lockup-rule {
  width: 1.5px;
  height: calc(var(--cap) * 1.5);
  background: var(--fg);
  opacity: 0.25;
}

main {
  flex: 1;
  max-width: var(--measure);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h2 .num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-right: 0.5rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

p, ul, .table-wrap { margin-bottom: 1rem; }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--accent); }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

address { font-style: normal; }

.caps { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.01em; }

/* Wide tables scroll inside their own box so the page never scrolls sideways. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 600;
  border-bottom-color: var(--fg);
}

footer {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

footer a { color: var(--muted); }
footer a:hover, footer a[aria-current="page"] { color: var(--fg); }

@media (max-width: 767px) {
  body { padding: 24px 16px; }
  header { margin-bottom: 2.5rem; }
  .mark { height: 46vh; transform: translate(-18%, 30%); }
}
