/* The document pages — privacy, terms, data deletion.
 *
 * These were left behind when the landing page was rebuilt: system Arial on a
 * warmer paper, no header, no footer, and no way back to the site. Following
 * the "Privacy" link in the footer dropped you onto what looked like a
 * different company's website. They share the landing page's tokens, faces
 * and furniture now, and only the tokens the shell needs are defined here —
 * index.html stays self-contained on purpose.
 *
 * Shared rather than pasted into each page: three copies of the same header
 * is how they drifted apart in the first place.
 */

@font-face {
  font-family: 'Outfit';
  src: url('/branding/fonts/Outfit-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('/branding/fonts/Alexandria-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* Light first, dark by preference — the same order, and for the same measured
   reason, as the landing page: Samsung Internet's force-dark crushes a page
   that is already dark, and these pages are read on phones. */
:root {
  color-scheme: light dark;

  --base:      #fafaf7;
  --surface:   #ffffff;
  --hairline:  #dde3e1;
  --ink:       #14211f;
  --ink-muted: #5c6b6d;
  --ink-faint: #7f8d8e;
  --accent:    #0f8d95;
  --shadow:    0 18px 40px -24px rgba(15, 40, 44, .28);

  --wordmark: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --body: 'Alexandria', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --base:      #0b1416;
    --surface:   #16262a;
    --hairline:  #24393e;
    --ink:       #eef6f5;
    --ink-muted: #9fb4b6;
    --ink-faint: #6d8386;
    --accent:    #17c7bc;
    --shadow:    0 24px 60px -30px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* One container for the header, the copy and the footer, so the wordmark and
   the heading under it start on the same pixel. A document column is narrower
   than the landing page's 1080, and the header has to come in with it. */
.wrap {
  width: min(808px, calc(100% - 40px));
  margin: 0 auto;
}

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--base) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: var(--wordmark);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; flex: none; }

.bar-link {
  font-size: .92rem;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  transition: color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.bar-link:hover { color: var(--ink); border-color: var(--ink-faint); }

/* --------------------------------------------------------------- copy --- */

main {
  width: min(808px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

h1 {
  font-family: var(--wordmark);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 1.12;
  margin: 0 0 6px;
}

.updated {
  color: var(--ink-faint);
  font-size: .9rem;
  margin-bottom: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

h2 {
  font-family: var(--wordmark);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.22rem;
  line-height: 1.3;
  color: var(--accent);
  margin: 38px 0 10px;
}
.card > h2:first-child { margin-top: 0; }

h3 {
  font-family: var(--wordmark);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 24px 0 6px;
}

p, li { font-size: .97rem; color: var(--ink-muted); }
p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

strong, b { color: var(--ink); font-weight: 600; }

ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Callout used by the data-deletion steps. */
.steps {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 16px 0;
}
.steps p:last-child, .steps ol:last-child, .steps ul:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--ink-faint);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: inherit; text-decoration: none; transition: color .18s ease; }
.site-footer a:hover { color: var(--ink); }

/* The wordmark and the pill fight for the same row on a 320dp screen; the
   pill is the one that can go, exactly as on the landing page. */
@media (max-width: 460px) {
  .bar-link { display: none; }
}

@media (max-width: 600px) {
  main { padding: 36px 0 56px; }
  .card { padding: 22px 20px; border-radius: 18px; }
}
