/* ---------------------------------------------------------------------------
   Legal / document pages (privacy, terms, account deletion).
   Loaded after styles.css — reuses the same tokens, nav, buttons and footer.
--------------------------------------------------------------------------- */

.doc-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 84px) clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--stroke);
}

.doc-hero::before {
  content: '';
  position: absolute;
  inset-inline-start: 50%;
  top: -280px;
  width: 780px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 72, 43, 0.16), transparent 66%);
  pointer-events: none;
}

.doc-hero__inner {
  position: relative;
}

.doc-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.doc-hero p {
  max-width: 660px;
  color: var(--text-secondary);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.68;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.doc-meta svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-light);
  flex-shrink: 0;
}

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

.doc-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 8vw, 96px);
}

/* sticky table of contents */
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.toc h2 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc;
}

.toc a {
  display: block;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-tertiary);
  border-inline-start: 2px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.toc a:hover {
  color: var(--text-primary);
  background: var(--surface);
}

.toc a.active {
  color: var(--text-primary);
  background: var(--surface);
  border-inline-start-color: var(--accent);
}

/* ---------------------------------- body --------------------------------- */

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

.doc-section + .doc-section {
  margin-top: clamp(38px, 5vw, 54px);
}

.doc-section h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.doc-section h3 {
  font-size: 16.5px;
  margin: 26px 0 10px;
  color: var(--text-primary);
}

.doc-body p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.75;
}

.doc-body p + p {
  margin-top: 14px;
}

.doc-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.doc-body a:not(.btn) {
  color: var(--accent-light);
  font-weight: 600;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.doc-body a:not(.btn):hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* bulleted list with brand markers */
.doc-list {
  margin-top: 16px;
  display: grid;
  gap: 11px;
}

.doc-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}

.doc-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 3px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.doc-list li b {
  color: var(--text-primary);
  font-weight: 600;
}

/* callout panel */
.note {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-inline-start: 3px solid var(--accent);
}

.note--warn {
  border-inline-start-color: var(--gold);
  background: linear-gradient(150deg, rgba(245, 181, 68, 0.07), rgba(23, 21, 18, 0.9) 60%);
}

.note--good {
  border-inline-start-color: var(--green-soft);
  background: linear-gradient(150deg, rgba(95, 203, 124, 0.06), rgba(23, 21, 18, 0.9) 60%);
}

.note h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.note p,
.note li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* data table */
.doc-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--stroke);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--surface);
}

.doc-table th,
.doc-table td {
  text-align: start;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}

.doc-table th {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--surface-alt);
  white-space: nowrap;
}

.doc-table td {
  color: var(--text-secondary);
}

.doc-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

/* numbered step cards (deletion guide) */
.steps-doc {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  counter-reset: dstep;
}

.step-doc {
  position: relative;
  padding: 22px 24px 22px 66px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--stroke);
  transition: border-color 0.25s ease;
}

.step-doc:hover {
  border-color: var(--stroke-strong);
}

.step-doc::before {
  counter-increment: dstep;
  content: counter(dstep);
  position: absolute;
  inset-inline-start: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(232, 72, 43, 0.3);
}

.step-doc h3 {
  margin: 0 0 7px;
  font-size: 16.5px;
}

.step-doc p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* end-of-document contact block */
.doc-cta {
  margin-top: clamp(44px, 6vw, 64px);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-card);
  background: linear-gradient(155deg, rgba(232, 72, 43, 0.1), rgba(23, 21, 18, 0.94) 56%);
  border: 1px solid rgba(232, 72, 43, 0.24);
}

.doc-cta h2 {
  font-size: clamp(20px, 2.3vw, 25px);
  margin-bottom: 12px;
}

.doc-cta p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.68;
}

.doc-cta .btn {
  margin-top: 22px;
}

/* cross-links between the legal pages */
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.doc-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-button);
  background: var(--surface);
  border: 1px solid var(--stroke);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}

.doc-links a:hover {
  border-color: var(--stroke-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.doc-links svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-light);
  flex-shrink: 0;
}

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

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .toc {
    position: static;
    padding: 18px 20px;
    border-radius: var(--r-card);
    background: var(--surface);
    border: 1px solid var(--stroke);
  }

  .toc ol {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .toc a {
    padding: 6px 9px;
    border-inline-start: 0;
  }

  .toc a.active {
    border-inline-start: 0;
    color: var(--accent-light);
  }
}

@media (max-width: 620px) {
  .toc ol {
    grid-template-columns: 1fr;
  }

  .step-doc {
    padding: 20px 20px 20px 20px;
  }

  .step-doc::before {
    position: static;
    margin-bottom: 13px;
  }
}

/* footer link chips on the legal pages (styles.css styles spans only) */
.footer__bar .langs {
  flex-wrap: wrap;
}

.footer__bar .langs a {
  padding: 4px 11px;
  border-radius: var(--r-chip);
  background: var(--input);
  border: 1px solid var(--stroke);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer__bar .langs a:hover {
  border-color: var(--stroke-strong);
  color: var(--text-primary);
}

/* the legal pages have no hero aurora to reveal into — show content at once */
.doc-body .reveal {
  opacity: 1;
  transform: none;
}
