/* Content and legal pages. */

/* ---------- Page hero ---------- */
.page-hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { max-width: 16ch; margin-top: 16px; }
.page-hero .lead { max-width: 40em; margin-top: 22px; }
.page-hero--dark { border-bottom: 0; background: var(--ink-900); color: var(--on-dark); }
.page-hero--dark .lead { color: var(--on-dark-2); }
.page-hero--dark .eyebrow { color: var(--on-dark-3); }

.page-meta { margin-top: 16px; color: var(--ink-500); font-size: 15px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-500);
  font-size: 14px;
  font-weight: 600;
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Prose ---------- */
.prose { color: var(--ink-700); font-size: 17px; line-height: 1.72; }

.prose > * + * { margin-top: 18px; }
.prose section + section { margin-top: 56px; }

.prose h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h3 {
  margin-top: 30px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.prose section > * + * { margin-top: 16px; }
.prose section > h3 + * { margin-top: 10px; }

.prose ul,
.prose ol { padding-left: 1.3em; }

.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink-400); }

.prose a { color: var(--ink); font-weight: 600; }
.prose strong { color: var(--ink); }

.prose .caps {
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.heading-link {
  margin-left: 10px;
  color: var(--ink-300);
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transition: opacity 160ms;
}

.prose h2:hover .heading-link,
.heading-link:focus-visible { opacity: 1; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }

.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }

.prose th,
.prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

.prose th { background: var(--muted); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

.callout {
  padding: 22px 24px;
  border-radius: var(--r-card);
  background: var(--muted);
  color: var(--ink-700);
}

.callout--ink { background: var(--ink); color: var(--on-dark); }
.callout--ink a,
.callout--ink strong { color: #fff; }
.callout > * + * { margin-top: 10px; }

.summary {
  padding: 26px 28px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
}

.summary h2 { font-size: 20px; letter-spacing: -0.01em; }
.summary ul { margin-top: 14px; }

/* ---------- Legal layout ---------- */
.legal__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: var(--section-y);
}

.legal__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: 14px;
}

.legal__body { min-width: 0; max-width: 760px; }

.toc summary {
  margin-bottom: 12px;
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
  cursor: default;
}

.toc summary::-webkit-details-marker { display: none; }

.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1.5px solid var(--line); }

.toc a {
  display: block;
  margin-left: -1.5px;
  padding: 6px 0 6px 14px;
  border-left: 1.5px solid transparent;
  color: var(--ink-500);
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms, border-color 160ms;
}

.toc a:hover { color: var(--ink); }
.toc a.is-current { border-left-color: var(--ink); color: var(--ink); font-weight: 700; }

.legal__docs { margin-top: 36px; }

.legal__docs p {
  margin-bottom: 10px;
  color: var(--ink-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal__docs ul { margin: 0; padding: 0; list-style: none; }
.legal__docs li + li { margin-top: 2px; }

.legal__docs a {
  display: block;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 8px;
  color: var(--ink-600);
  text-decoration: none;
}

.legal__docs a:hover { background: var(--muted); color: var(--ink); }
.legal__docs a[aria-current="page"] { background: var(--muted-2); color: var(--ink); font-weight: 700; }

@media (max-width: 1023px) {
  .legal__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal__aside { position: static; max-height: none; overflow: visible; padding: 0; }
  .toc { padding: 16px 18px; border-radius: var(--r-card); background: var(--muted); }
  .toc summary { margin: 0; cursor: pointer; display: flex; justify-content: space-between; }
  .toc summary::after { content: "+"; font-size: 18px; line-height: 1; letter-spacing: 0; }
  .toc[open] summary::after { content: "–"; }
  .toc[open] summary { margin-bottom: 12px; }
  .legal__docs { display: none; }
}

/* ---------- Cards and grids ---------- */
.grid-2,
.grid-3 { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.tile {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border-radius: var(--r-lg);
  background: var(--muted);
  color: inherit;
  text-decoration: none;
  transition: background 180ms, transform 180ms var(--ease-press);
}

a.tile:hover { background: var(--muted-2); }
a.tile:active { transform: scale(0.985); }

.tile h2,
.tile h3 { font-size: 20px; letter-spacing: -0.012em; }
.tile p { margin-top: 8px; color: var(--ink-600); font-size: 15px; line-height: 1.55; }
.tile .link-arrow { margin-top: auto; padding-top: 16px; font-size: 15px; }

.tile__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--paper);
}

.tile__icon svg { width: 22px; height: 22px; }

.section--dark .tile { background: #151515; }
.section--dark .tile p { color: var(--on-dark-2); }
.section--dark .tile__icon { background: #fff; color: #000; }

/* Numbered steps (delete account, safety tools) */
.steps-list { counter-reset: step; margin: 0; padding: 0; list-style: none; }

.steps-list li {
  position: relative;
  padding: 0 0 22px 56px;
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}

.steps-list li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 1.5px;
  background: var(--line);
}

.steps-list li:last-child::after { display: none; }
.steps-list b { display: block; color: var(--ink); }

/* Split section: heading left, content right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.split + .split { margin-top: clamp(56px, 7vw, 96px); }
.split h2 { font-size: clamp(28px, 3.4vw, 44px); }
.split .lead { margin-top: 16px; }

@media (max-width: 1023px) { .split { grid-template-columns: minmax(0, 1fr); } }

.check-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  color: var(--ink-700);
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.check-list--warn li::before {
  background: var(--danger)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.check-list b { color: var(--ink); }

/* Resource list (safety hotlines) */
.resources { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.resources li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 18px 20px;
  border-radius: var(--r-card);
  background: var(--muted);
}

.resources b { color: var(--ink); }
.resources span { color: var(--ink-600); }
.resources a { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------- Help center ---------- */
.help-search { position: relative; max-width: 620px; margin-top: 32px; }

.help-search input {
  width: 100%;
  height: 60px;
  padding: 0 20px 0 54px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  font-size: 17px;
  font-weight: 500;
}

.help-search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1); }

.help-search svg { position: absolute; left: 20px; top: 19px; width: 22px; height: 22px; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.chip {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--muted);
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms, color 160ms, transform 160ms var(--ease-press);
}

.chip:hover { background: var(--muted-2); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.help-group + .help-group { margin-top: 56px; }
.help-group h2 { margin-bottom: 8px; font-size: clamp(24px, 2.4vw, 30px); }
.help-empty { padding: 40px 0; color: var(--ink-500); }

/* ---------- Contact ---------- */
.form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }

.field label { font-size: 14px; font-weight: 700; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-size: 16px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }

.field small { color: var(--ink-500); font-size: 13px; }

.contact-card { position: sticky; top: calc(var(--header-h) + 24px); }

.info-rows { margin: 0; padding: 0; list-style: none; border-radius: var(--r-card); background: var(--muted); }

.info-rows li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 20px; font-size: 15px; }
.info-rows li + li { border-top: 1px solid var(--line); }
.info-rows span { color: var(--ink-500); }
.info-rows b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 639px) {
  .info-rows li { grid-template-columns: 1fr; gap: 2px; }
  .contact-card { position: static; }
}

/* ---------- 404 ---------- */
.not-found { display: grid; place-items: center; min-height: 70vh; padding: 80px 0; text-align: center; }
.not-found__code { font-family: var(--font-mono); color: var(--ink-400); font-weight: 600; }
.not-found h1 { margin: 16px auto 0; max-width: 14ch; }
.not-found .lead { margin: 20px auto 0; max-width: 32em; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .legal__aside,
  .skip-link,
  .heading-link { display: none !important; }
  .legal__layout { display: block; padding: 0; }
  .page-hero { padding: 0 0 16px; }
  body { font-size: 12pt; color: #000; }
  .prose { color: #000; }
  .prose a::after { content: " (" attr(href) ")"; font-weight: 400; }
}
