/* Repzy — legal pages
   Design tokens follow the marketing site: near-black canvas, paper-cream
   reading surface, brand orange #F54C00 (new icon), amber #FFC300 (interior).
   One stylesheet for terms.html, privacy.html, delete-account.html. */

:root {
  --ink: #101010;
  --ink-soft: #4a4a4a;
  --ink-faint: #7a7a7a;
  --paper: #f2eee7;
  --paper-card: #ffffff;
  --night: #0a0a0a;
  --night-2: #161513;
  --orange: #f54c00;
  --orange-dim: #c33c00;
  --amber: #ffc300;
  --line: #dedad2;
  --line-dark: #262421;
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font-display: "Outfit", "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--line-dark);
}

.topbar__in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; display: block; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #fff;
}

.topbar__spacer { flex: 1; }

.topbar__link {
  font-size: 14px;
  font-weight: 600;
  color: #cfcbc4;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  white-space: nowrap;
}
.topbar__link:hover { color: #fff; border-color: var(--orange); }

/* ---------- hero ---------- */

.hero {
  background: var(--night);
  color: #fff;
  padding: 54px 22px 64px;
  border-bottom: 1px solid var(--line-dark);
}
.hero__in { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.45rem, 6.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  margin: 0 0 20px;
  max-width: 18ch;
  text-transform: none;
}
h1 em { font-style: normal; color: var(--orange); }

.hero__sub {
  max-width: 62ch;
  color: #b7b3ac;
  font-size: 1.05rem;
  margin: 0 0 26px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 13.5px;
  color: #d8d4cd;
}
.stamp b { color: #fff; font-weight: 600; }
.stamp .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: 0 0 7px; }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 22px 90px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.toc { position: sticky; top: 92px; }
.toc__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0 0 2px; }
.toc a {
  display: block;
  padding: 5px 0 5px 30px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.toc a:hover { color: var(--orange); }
.toc a:hover::before { color: var(--orange); }

.toc-mobile { display: none; }

/* ---------- content ---------- */

.doc { min-width: 0; max-width: 74ch; }

/* Signature: the amber-to-orange band lifted from the site's offer strip.
   One loud element on the page; everything else stays quiet. */
.summary {
  background: linear-gradient(102deg, var(--amber) 0%, var(--orange) 100%);
  color: #1a0d05;
  border: 0;
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 0 0 50px;
}
.summary h2 {
  margin: 0 0 16px;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: #150a03;
}
.summary strong { font-weight: 700; }
.summary a { color: #150a03; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 0 0 8px; }
.summary li:last-child { margin-bottom: 0; }

section { scroll-margin-top: 96px; margin: 0 0 46px; }

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.3vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
h2 .num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin: 30px 0 10px;
}

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 9px; }

a { color: var(--orange-dim); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

strong { font-weight: 650; }

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 20px;
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.callout {
  background: #fff6ef;
  border: 1px solid #f6d5bf;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }
.callout__label {
  display: block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.table-scroll { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #faf8f5;
}
tr:last-child td { border-bottom: 0; }

/* unresolved facts — must be filled before publishing */
.ph {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #ffe9dd;
  border-bottom: 2px dashed var(--orange);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--orange-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
}
.btn:hover { background: var(--orange-dim); color: #fff; }

.updated-note {
  font-size: 14px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 46px;
}

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

.footer {
  background: var(--night);
  color: #b7b3ac;
  padding: 52px 22px 40px;
}
.footer__in {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f6b64;
  margin: 0 0 14px;
}
.footer p { margin: 0 0 8px; font-size: 15px; }
.footer a { color: #e6e2db; text-decoration: none; }
.footer a:hover { color: var(--orange); text-decoration: underline; }
.footer__bottom {
  max-width: var(--maxw);
  margin: 38px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
  color: #6f6b64;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------- focus + motion ---------- */

a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .wrap { grid-template-columns: 1fr; gap: 0; padding: 30px 20px 70px; }
  .toc { display: none; }
  .toc-mobile {
    display: block;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0 0 32px;
    padding: 4px 18px;
  }
  .toc-mobile summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
  }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: " ↓"; color: var(--orange); }
  .toc-mobile[open] summary::after { content: " ↑"; }
  .toc-mobile ol { padding: 0 0 12px 20px; margin: 0; }
  .toc-mobile li { margin-bottom: 6px; }
  .toc-mobile a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
  .hero { padding: 38px 20px 44px; }
  .summary { padding: 22px 20px; }
  .card, .callout { padding: 18px 20px; }
}

@media print {
  .topbar, .toc, .toc-mobile, .footer, .btn { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .hero { background: #fff; color: #000; border-bottom: 1px solid #999; padding: 0 0 18px; }
  .hero__sub, .stamp { color: #333; }
  .wrap { display: block; padding: 18px 0; }
  a { color: #000; }
}
