/* Reachiko legal pages (Terms, Privacy, Community Guidelines, Legal notice): long-form reading in the app's colours. */
:root {
  --ink: #120f1f;
  --ink-2: #1c1830;
  --line: rgba(245, 242, 255, 0.12);
  --paper: #f5f2ff;
  --mist: #a39dbe;
  --sun: #ffb45e;
  --tide: #5fe3cf;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--tide); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--tide); outline-offset: 2px; border-radius: 4px; }

.bar, .doc, .foot { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 0.32em; color: var(--paper); text-decoration: none; font: 800 26px/1 var(--display); letter-spacing: -0.03em; min-height: 44px; }
.brand svg { width: 1.05em; height: 1.05em; flex: none; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; }
.langs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--mist); text-decoration: none; }
.langs a[aria-current] { color: var(--ink); background: var(--tide); border-color: var(--tide); font-weight: 600; }

.doc { padding-top: 12px; padding-bottom: 32px; }
.doc h1 { font: 800 clamp(32px, 7vw, 48px)/1.08 var(--display); letter-spacing: -0.03em; margin: 16px 0 6px; text-wrap: balance; }
.doc h2 { font: 700 clamp(21px, 4.2vw, 25px)/1.25 var(--display); letter-spacing: -0.01em; margin: 2.2em 0 0.5em; text-wrap: balance; }
.doc h3 { font: 700 18px/1.35 var(--body); margin: 1.6em 0 0.4em; }
.doc p, .doc ul, .doc ol, .doc address { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 0.35em 0; }
.doc li::marker { color: var(--mist); }
.doc strong { font-weight: 700; }
.doc address { font-style: normal; padding: 14px 16px; border-left: 3px solid var(--sun); background: var(--ink-2); border-radius: 0 14px 14px 0; }
.updated { color: var(--mist); font-size: 15px; margin-bottom: 1.6em !important; }

.summary { margin: 1.6em 0; padding: 4px 20px 6px; border: 1px solid rgba(255, 180, 94, 0.3); background: rgba(255, 180, 94, 0.07); border-radius: 18px; }
.summary h2 { margin-top: 0.9em; font-size: 20px; color: var(--sun); }
.summary p { color: var(--mist); font-size: 15px; }

.toc { margin: 1.6em 0 0; padding: 14px 20px; border: 1px solid var(--line); border-radius: 18px; font-size: 16px; }
.toc ol { margin: 0; padding-left: 1.6em; }
.toc li { margin: 0.2em 0; break-inside: avoid; }
.toc a { display: inline-block; padding: 4px 0; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }

section { scroll-margin-top: 16px; }

/* Data table: a normal table on wide screens, one card per row on phones. */
.table-wrap { margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; color: var(--mist); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 699px) {
  table, thead, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { margin: 0 0 12px; padding: 6px 16px; background: var(--ink-2); border-radius: 16px; border: 1px solid var(--line); }
  td { padding: 8px 0; }
  td:last-child { border-bottom: 0; }
  td[data-label]::before { content: attr(data-label); display: block; color: var(--mist); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
}

.foot { padding-top: 20px; padding-bottom: max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--mist); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--paper); text-decoration: none; }
.foot nav a[aria-current] { color: var(--tide); }
.foot p { margin: 4px 0 0; }

@media print {
  :root { --ink: #fff; --ink-2: #f4f4f6; --paper: #111; --mist: #555; --line: #ccc; --tide: #0b6b60; --sun: #b25e00; color-scheme: light; }
  .langs, .toc, .foot nav { display: none; }
  a { color: inherit; }
}
