/* Support and Privacy — the documentation pages.
 *
 * Loaded after site.css, which carries the tokens and the shared chrome
 * (nav, footer, buttons). What is here is only what a long read needs: the
 * sticky table of contents, the section cards, and the handful of block
 * types the copy uses.
 *
 * The class names come from the pages as they already were — .tip-box,
 * .stat-card, .faq-item and the rest. Restyling them rather than renaming
 * them is what let the whole redesign happen without touching a single line
 * of content, and content is where 192 translated strings live.
 */

/* The hero's glow is the same one the landing page uses, pulled up behind
 * the title. overflow:hidden on the header is what keeps it from widening
 * the page on a phone. */
.doc-hero { position: relative; overflow: hidden; padding: 60px 0 30px; }
.doc-glow {
  position: absolute;
  left: 50%; top: -330px;
  transform: translateX(-50%);
  width: 1300px; height: 720px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.10), transparent 62%);
  pointer-events: none;
}
.doc-hero-inner { position: relative; }
.doc-hero h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.06;
  margin: 0;
}
.doc-hero p {
  color: var(--t-2);
  font-size: 16.5px;
  line-height: 1.62;
  margin: 16px 0 0;
  max-width: 720px;
}
.doc-updated { color: var(--t-4); font-size: 13.5px; margin-top: 14px; }

/* Content beside a table of contents that follows the reader down. */
/* No align-items:start here. A sticky child only sticks inside its own
 * parent's box, so a TOC column shrink-wrapped to its content stops
 * following the reader the moment the article grows taller than it. */
.doc-grid { display: grid; grid-template-columns: 214px 1fr; gap: 42px; padding-bottom: 40px; }
.doc-grid.narrow { grid-template-columns: 200px 1fr; }

.toc { min-width: 0; }
.toc-inner { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 3px; }
.toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--t-4);
  text-transform: uppercase;
  padding: 0 12px 8px;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--t-3);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  padding: 7px 12px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.toc a .material-symbols-rounded {
  flex: none;
  font-size: 16px;
  color: rgba(34, 211, 238, 0.7);
}
.toc a:hover { background: var(--surface); color: var(--t-1); }

.doc-body { min-width: 0; }

/* Every section is a card with an icon tile above its heading. The anchor
 * offset matters: without it the sticky nav covers the heading a reader
 * just clicked to reach. */
.doc-body section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 18px;
  scroll-margin-top: 96px;
}

.sec-head { display: flex; align-items: center; gap: 12px; }
.sec-head .tile {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.1);
}
.sec-head .tile .material-symbols-rounded { font-size: 19px; }

.doc-body h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0;
}
.doc-body h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 26px 0 0;
  color: var(--t-1);
}
.doc-body p { color: var(--t-2); font-size: 15px; line-height: 1.68; margin: 12px 0 0; }
.sec-head + * { margin-top: 16px; }
.doc-body strong { color: var(--t-1); font-weight: 600; }

.doc-body ul { margin: 12px 0 0; padding: 0; list-style: none; }
.doc-body li {
  position: relative;
  color: var(--t-2);
  font-size: 15px;
  line-height: 1.68;
  padding-left: 18px;
  margin-top: 9px;
}
.doc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.highlight-box {
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 15px;
  padding: 16px 18px;
  margin-top: 16px;
}
.highlight-box p { margin: 0; color: var(--t-1); }

.tip-box {
  background: rgba(245, 165, 36, 0.07);
  border: 1px solid rgba(245, 165, 36, 0.16);
  border-radius: 15px;
  padding: 16px 18px;
  margin-top: 18px;
}
.tip-label {
  color: var(--amber) !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 6px !important;
}
.tip-box p { margin: 0; }

/* Numbered steps — the numeral tile is drawn by a counter so the markup
 * stays as it was. */
.doc-body { counter-reset: step; }
.step {
  position: relative;
  padding-left: 40px;
  margin-top: 18px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title { color: var(--t-1); font-weight: 600; font-size: 15px; margin: 0 !important; }
.step-desc { margin-top: 4px !important; }

/* Metric grid — five across, numerals in the condensed face. */
.stat-display {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 12px;
  text-align: center;
}
.stat-card .label {
  display: block;
  color: var(--t-4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.stat-card .value {
  display: block;
  font-family: 'Barlow Condensed', 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 25px;
  color: var(--t-1);
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.stat-card .unit { color: var(--t-4); font-size: 11px; font-weight: 600; margin-left: 3px; }

/* FAQ — a divider between rows only, so the list reads as one block. */
.faq-item { padding: 16px 0; }
.faq-item + .faq-item { border-top: 1px solid var(--divider); }
.faq-question {
  color: var(--t-1);
  font-size: 15.5px;
  font-weight: 600;
  margin: 0 !important;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
/* The arrow and the click-to-toggle are left over from an accordion. Every
 * answer is shown, so the arrow goes and the handler is simply inert. */
.faq-arrow { display: none; }
.faq-question { cursor: default; }
.faq-answer { margin: 0; }
/* The answer is a bare div, not a paragraph — style it directly. */
.faq-answer-inner {
  color: var(--t-2);
  font-size: 15px;
  line-height: 1.68;
  margin-top: 7px;
}
.faq-answer-inner p { margin-top: 8px; }

/* Contact closes the page, so it gets the accent card the comp gives it.
 * The mail link cannot take a class: it lives inside the translated string
 * support.contact.p2, which i18n.js writes in as innerHTML. Selecting the
 * mailto href is what styles it without touching the copy. */
#contact {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.11), rgba(255, 255, 255, 0.03));
  border-color: rgba(34, 211, 238, 0.18);
}
#contact .tile { background: rgba(34, 211, 238, 0.14); }
#contact a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  margin-top: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3ee3f5, var(--accent));
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.22);
  transition: transform 0.15s;
}
#contact a[href^="mailto:"]:hover { color: var(--accent-ink); transform: translateY(-2px); }

@media (max-width: 900px) {
  .doc-grid, .doc-grid.narrow { grid-template-columns: 1fr; gap: 20px; }
  /* The TOC becomes a horizontal strip rather than disappearing: on a long
   * document it is the only way to see what is here without scrolling all
   * of it. */
  .toc-inner { position: static; flex-direction: row; overflow-x: auto; white-space: nowrap; padding-bottom: 6px; }
  .toc-label { display: none; }
  .toc a { flex: none; }
  .doc-hero h1 { font-size: 34px; letter-spacing: -1.2px; }
  .doc-body section { padding: 22px; border-radius: 20px; }
  .stat-display { grid-template-columns: repeat(2, 1fr); }
}
