/* TechCore — Terms and Privacy pages. Same dark surface and accent as the login
   page, tuned for long-form reading: a narrow text column, a contents list
   that stays in view on wide screens, and nothing that animates. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #08080a;
  --bg-2: #0d0d11;
  --line: rgba(255, 255, 255, 0.085);
  --text: #f3f2ef;
  --body: #c9c9c6;
  --muted: #93949a;
  --accent: #5b93ff;
  --accent-soft: #8fb4ff;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(91, 147, 255, 0.10), transparent 70%),
    var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---- top bar ---- */
.legal-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-top img { width: 124px; display: block; }
.legal-top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.legal-top nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
}
.legal-top nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.legal-top nav a[aria-current="page"] { color: var(--text); background: rgba(91, 147, 255, 0.14); }

/* ---- layout ---- */
.legal-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 56px;
  justify-content: center;
  padding: 48px clamp(16px, 4vw, 48px) 96px;
}

.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  font-size: 13px;
}
.toc p {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--muted);
  line-height: 1.4;
}
.toc a:hover { color: var(--text); border-left-color: var(--accent); text-decoration: none; }

/* ---- document ---- */
.doc header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.doc .updated { color: var(--muted); font-size: 13.5px; }
.doc .lead { margin-top: 16px; font-size: 16px; color: var(--body); }

.doc section { padding-top: 12px; margin-bottom: 30px; scroll-margin-top: 80px; }
.doc h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  color: var(--text);
  margin-bottom: 10px;
}
.doc h3 { font-size: 15px; color: var(--text); margin: 18px 0 6px; }
.doc p, .doc li { font-size: 15px; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 0 20px; }
.doc li { margin: 5px 0; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); font-weight: 600; }

/* a plain-language summary box at the top of a section */
.doc .note {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(91, 147, 255, 0.3);
  background: rgba(91, 147, 255, 0.07);
  font-size: 14px;
}

/* table of service providers */
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.doc td:first-child { color: var(--text); white-space: nowrap; }

/* Details still to be filled in before publishing — made impossible to miss. */
.fill {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 196, 0, 0.16);
  border: 1px dashed rgba(255, 196, 0, 0.6);
  color: #ffd45c;
  font-weight: 600;
  white-space: nowrap;
}

.legal-foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .toc { display: none; }
}
@media (max-width: 520px) {
  .doc td:first-child { white-space: normal; }
  .legal-top img { width: 104px; }
}
@media print {
  body { background: #fff; color: #111; }
  .legal-top, .toc { display: none; }
  .legal-wrap { display: block; padding: 0; }
  .doc h1, .doc h2, .doc h3, .doc strong, .doc td:first-child { color: #111; }
  .doc p, .doc li { color: #222; }
}
