/* The legal pages (privacy, terms, community guidelines) in the home page's v25 look.
   Loaded after home.css (the tokens and the .vp points); the header and footer are chrome.css. */
.lg-hero { padding-block: clamp(44px, 6vw, 88px) clamp(28px, 4vw, 44px); }
.lg-hero .shell { display: grid; gap: 18px; justify-items: start; }
.lg-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.lg-hero .lede { max-width: 760px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.lg-meta span { display: inline-flex; align-items: center; gap: 8px; }
.lg-meta svg { color: var(--teal); }
.lg-lang { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 760px; }

/* the short version: the home page's privacy vault, as a rounded panel */

/* contents + document */
.lg-body { display: grid; gap: 28px; padding-bottom: clamp(56px, 8vw, 110px); }
.lg-body > * { min-width: 0; }
.lg-toc { display: none; }
.lg-toc__label { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lg-toc ol, .lg-toc-m ol { list-style: none; margin: 0; padding: 0; display: grid; }
.lg-toc a, .lg-toc-m a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 7px 12px; font-size: 14.5px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.lg-toc a { border-inline-start: 2px solid var(--line); }
.lg-toc a span, .lg-toc-m a span { font-family: var(--mono); font-size: 12.5px; padding-top: 1px; color: var(--muted); opacity: .8; }
.lg-toc a:hover, .lg-toc-m a:hover { color: var(--teal-7); }
.lg-toc a.is-on { color: var(--teal-7); border-inline-start-color: var(--teal); }
.lg-toc-m { border-radius: 18px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.lg-toc-m summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-size: 16px; font-weight: 700; }
.lg-toc-m summary::-webkit-details-marker { display: none; }
.lg-toc-m summary::after { content: '+' / ''; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--teal-7); font-size: 19px; font-weight: 600; }
.lg-toc-m[open] summary::after { content: '−' / ''; }
.lg-toc-m ol { padding: 0 6px 12px; }
@media (min-width: 1024px) {
  .lg-body { grid-template-columns: 270px minmax(0, 1fr); gap: clamp(48px, 5vw, 88px); }
  .lg-toc { display: block; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; }
  .lg-toc-m { display: none; }
}

.lg-doc { max-width: 780px; color: var(--body); font-size: 16.5px; line-height: 1.7; }
.lg-doc section { scroll-margin-top: 88px; }
.lg-doc section + section { margin-top: clamp(40px, 5vw, 60px); }
.lg-doc h2 { font-size: clamp(23px, 2.2vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.025em; color: var(--ink); margin: 0 0 16px; }
.lg-doc h3 { font-size: 18px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 28px 0 10px; }
.lg-doc p + p, .lg-doc p + ul, .lg-doc ul + p, .lg-doc .lg-table + p, .lg-doc p + .lg-table { margin-top: 14px; }
.lg-doc strong { color: var(--ink); font-weight: 700; }
.lg-doc a { color: var(--teal-7); text-decoration: underline; text-decoration-color: rgba(13,148,136,.35); text-underline-offset: 3px; }
.lg-doc a:hover { text-decoration-color: currentColor; }
.lg-doc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-doc li { position: relative; padding-inline-start: 24px; }
.lg-doc li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.lg-doc [data-short] { margin-bottom: 18px; padding: 14px 18px; border-radius: 16px; background: var(--mint-50); box-shadow: inset 0 0 0 1px rgba(13,148,136,.16); color: var(--ink); font-size: 16px; line-height: 1.6; }
.lg-doc [data-short]::before { content: 'In short'; display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-7); }
.lg-doc [data-note] { margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: #FFFBEB; box-shadow: inset 0 0 0 1px #FDE68A; color: #713F12; font-size: 15.5px; line-height: 1.6; }
.lg-doc [data-note] strong { color: #713F12; }
.lg-table { margin-top: 16px; overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.lg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.lg-table th { text-align: start; padding: 12px 16px; background: var(--soft); font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.lg-table td:first-child { font-weight: 700; color: var(--ink); min-width: 140px; }
/* phones: each row becomes a card, each value under its column's name */
@media (max-width: 639px) {
  .lg-table { overflow: visible; box-shadow: none; border-radius: 0; display: grid; gap: 10px; }
  .lg-table table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; min-width: 0; width: auto; }
  .lg-table table { min-width: 0; }
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-table tbody { display: grid; gap: 10px; }
  .lg-table tr { padding: 14px 16px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
  .lg-table td { padding: 0; border: 0; }
  .lg-table td + td { margin-top: 10px; }
  .lg-table td:first-child { font-size: 16.5px; min-width: 0; }
  .lg-table td + td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}

/* questions */
.lg-help { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.lg-help > div { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lg-help i { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--teal-7); display: grid; place-items: center; }
.lg-help b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.lg-help span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.lg-help .btn { margin: 0; }
/* The legal text's link colour (teal) would win inside the article: the button keeps its white. */
.lg-help .btn, .lg-help .btn:hover { color: #FFFFFF; }

@media print {
  .top, .foot, .lg-toc, .lg-toc-m, .lg-help .btn { display: none !important; }
  .lg-body { display: block; }
}
