/* Shared style for the Glynce legal pages — matches the landing page. */
:root {
  /* Light-only for now: keeps browser-drawn controls light under a dark OS. */
  color-scheme: light;
  --ink: #14223b;
  --muted: #5f6b80;
  --rule: #e6e9f0;
  --bg: #fbfcfe;
  --card: #ffffff;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-soft: #e8f0fe;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* The marketing hero's colour band across the top of the page, washing to a
   single flat var(--bg) before the text starts. There is no hero element on a
   legal page, so it rides on body::before. */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 460px;
  pointer-events: none;
  z-index: 0;
  background:
    /* Wash first: earlier layers paint on top, so this is what fades the
       radials below it back to one flat colour. */
    linear-gradient(180deg, transparent 52%, var(--bg) 94%),
    radial-gradient(60% 46% at 0% 58%, rgba(125, 211, 252, 0.32), transparent 72%),
    radial-gradient(54% 42% at 22% 68%, rgba(52, 211, 153, 0.24), transparent 72%),
    radial-gradient(50% 40% at 41% 56%, rgba(250, 204, 21, 0.19), transparent 72%),
    radial-gradient(50% 40% at 59% 68%, rgba(251, 146, 60, 0.17), transparent 72%),
    radial-gradient(54% 42% at 78% 56%, rgba(244, 114, 182, 0.21), transparent 72%),
    radial-gradient(60% 46% at 100% 66%, rgba(129, 140, 248, 0.26), transparent 72%);
}
body > * { position: relative; z-index: 1; }

a { color: var(--blue-dark); text-decoration: none; border-bottom: 1px solid rgba(37,99,235,0.30); }
a:hover { border-bottom-color: var(--blue-dark); }

/* Top nav, footer and language switcher come from the shared chrome.css,
   which these pages link ahead of this sheet. */

/* "English is authoritative" translation notice */
.xlate-note {
  font-size: 14px;
  color: var(--muted);
  background: var(--blue-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 28px;
}
.xlate-note a { color: var(--blue-dark); }

/* Content — the top padding clears the floating pill nav. */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 138px max(24px, env(safe-area-inset-right)) 88px max(24px, env(safe-area-inset-left));
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
h1 { font-size: 40px; font-weight: 800; margin: 0 0 8px; }
.effective { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
h2 { font-size: 23px; font-weight: 700; margin: 46px 0 12px; }
h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
p { margin: 0 0 14px; }
ul { padding-left: 22px; margin: 0 0 16px; }
li { margin: 0 0 6px; }
li::marker { color: var(--blue); }
strong { color: var(--ink); }

code, .mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 1px 6px;
  border-radius: 5px;
}

.table-wrap { overflow-x: auto; margin: 16px 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
thead th { background: var(--blue-soft); color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }

@media (max-width: 540px) {
  body { font-size: 16px; }
  main { padding: 116px 20px 64px; }
  h1 { font-size: 30px; }
  h2 { font-size: 20px; }
}

/* ── FAQ accordion (the /faq page) ─────────────────────────────────────────
   Card-per-question, grouped by subject, matched to the landing page's FAQ.
   Only the /faq page carries .faq-list markup, so these don't touch the
   privacy/terms documents that share this stylesheet. */
.faq-page-lede {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.faq-page-lede a { color: var(--blue-dark); }

.faq-cat { margin-top: 48px; }
.faq-cat > h2 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card, #fff);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 20px 22px;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .toggle {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef0f4;
  transition: transform 0.25s ease;
}
.faq-list .toggle::before,
.faq-list .toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.faq-list .toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] .toggle { transform: rotate(45deg); }

.faq-list details > p,
.faq-list details > ul {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}
.faq-list details ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-list details ul li { position: relative; padding-left: 14px; }
.faq-list details ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}
.faq-list details a { color: var(--blue-dark); }
.faq-list details .faq-link { margin-top: 14px; }
.faq-list details .faq-link a { font-size: 15px; font-weight: 600; text-decoration: none; }
.faq-list details .faq-link a:hover { text-decoration: underline; }
.faq-list details .faq-link span { display: inline-block; transition: transform 0.15s ease; }
.faq-list details .faq-link a:hover span { transform: translateX(3px); }
