/* Privacy and Terms pages. Builds on the tokens and base styles in site.css. */

.doc-page {
  background:
    radial-gradient(ellipse 90% 520px at 70% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%),
    var(--paper);
}

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3.2vw, 40px) var(--gutter);
}
.doc-top .brand { color: var(--ink); text-decoration: none; }

.doc-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9375rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #3576F0 0%, var(--blue) 58%, #1B55D2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(8, 30, 90, .22),
    0 1px 2px rgba(23, 73, 189, .30),
    0 6px 16px -6px rgba(31, 95, 224, .55);
  transition: transform .55s var(--spring), filter .3s var(--ease-out-soft);
}
.doc-cta:hover { color: #fff; filter: brightness(1.06); }
.doc-cta:active { transform: scale(.965); transition: transform .12s ease-out; }

.doc-wrap {
  display: grid;
  grid-template-columns: 13rem minmax(0, 42rem);
  column-gap: clamp(40px, 6vw, 112px);
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 120px);
}

/* Section menu (wide screens only) */
.toc { grid-column: 1; grid-row: 1 / span 2; }
.toc nav { position: sticky; top: 32px; }
.toc p { font-weight: 600; font-size: .875rem; margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 5px 0;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--ink-3);
  text-decoration: none;
}
.toc a:hover { color: var(--ink); }

.doc { grid-column: 2; min-width: 0; }

.doc h1 {
  text-wrap: balance;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.doc-meta { margin-top: 16px; font-size: .9375rem; color: var(--ink-3); }

.doc p, .doc li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 14px; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { color: var(--blue); }
.doc a:hover { color: var(--blue-deep); }

.doc ul { padding: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li + li { margin-top: 8px; }
/* Bullets are small dots in the body's blue, a quiet nod to the particle figure. */
.doc ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

/* The plain-English summary and the emergency note */
.panel {
  margin-top: 40px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid rgba(11, 27, 58, .08);
  border-radius: 16px;
}
.panel h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; }
.panel + .panel { margin-top: 16px; }
.panel-urgent { border-color: rgba(184, 50, 42, .28); background: #FFFBFA; }
.panel-urgent h2 { color: var(--error); }

.doc section { margin-top: 56px; scroll-margin-top: 24px; }
.doc section h2 {
  position: relative;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
/* Section numbers are what the terms cross-reference ("see section 8.1"). */
.doc section h2 .num {
  margin-right: .45em;
  color: var(--ink-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1000px) {
  /* Hang the numbers in the margin so headings line up with the text below them. */
  .doc section h2 .num { position: absolute; right: 100%; margin-right: .7em; }
}
.doc h3 { font-size: 1.0625rem; font-weight: 600; margin: 24px 0 8px; }

/* Purpose / legal-basis pairs in the privacy policy */
.basis { margin-top: 18px; display: grid; gap: 12px; }
.basis div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(11, 27, 58, .08);
  border-radius: 12px;
}
.basis div p { font-size: 1rem; }
.basis div p + p { margin-top: 4px; }
.basis + p { margin-top: 18px; }

.doc-foot {
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid rgba(11, 27, 58, .08);
}

@media (max-width: 999px) {
  .doc-wrap { grid-template-columns: minmax(0, 42rem); }
  .toc { display: none; }
  .doc { grid-column: 1; }
}

@media (max-width: 440px) {
  .doc-cta { height: 38px; padding: 0 14px; font-size: .875rem; }
  .doc section { margin-top: 44px; }
}
