/* terms page, mobile layout (screens up to 720px). Self-contained: no file is shared between pages. */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-border: #e0e0e0;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-primary: #2d5be3;
  --color-primary-hover: #1b41b8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.5; position: relative; overflow-x: hidden; }
.wave { position: absolute; top: 0; right: 0; height: auto; pointer-events: none; user-select: none; z-index: 0; }
.top { position: sticky; top: 0; z-index: 20; padding: .7rem 1.5rem; background: transparent; pointer-events: none; }
.top a { pointer-events: auto; }
.doc h2 { scroll-margin-top: 4rem; }
.back { color: var(--color-primary); text-decoration: none; font-size: .95rem; }
.back:hover, .back:focus-visible { color: var(--color-primary-hover); text-decoration: underline; }
.doc { position: relative; z-index: 1; margin: 0 auto; }
.doc h1 { margin: 0 0 .3rem; }
.updated { margin: 0 0 1.6rem; color: var(--color-text-secondary); font-size: .9rem; }
.doc h2 { margin: 2.2rem 0 .6rem; }
.doc h3 { margin: 1.5rem 0 .4rem; font-size: 1.1rem; }
.doc p, .doc li { color: var(--color-text); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: .35rem 0; }
.doc a { color: var(--color-primary); }
.doc a:hover, .doc a:focus-visible { color: var(--color-primary-hover); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 1rem 0; padding: 1rem 1.2rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; }
.facts dt { color: var(--color-text-secondary); }
.facts dd { margin: 0; }
.placeholder { background: #fff6d6; border-radius: 4px; padding: 0 .3rem; }
.summary { margin: 1.4rem 0; padding: 1rem 1.2rem 1rem 1.4rem; background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-primary); border-radius: 10px; }
.summary ul { margin: 0; }
.table-wrap { margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; }
th, td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
th { font-size: .85rem; color: var(--color-text-secondary); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; word-break: break-all; }
.legal { position: relative; z-index: 1; text-align: center; padding: 1.4rem 1rem 1.8rem; font-size: .85rem; }
.legal a { color: var(--color-text-secondary); text-decoration: none; }
.legal a:hover, .legal a:focus-visible { color: var(--color-text); text-decoration: underline; }
.wave { width: 100vw; }
.doc { padding: .5rem 1.2rem 1.5rem; }
.doc h1 { font-size: 1.7rem; }
.doc h2 { font-size: 1.2rem; }
.facts { grid-template-columns: 1fr; gap: .1rem; }
.facts dd { margin-bottom: .6rem; }
.placeholder { display: inline-block; }
thead { display: none; }
table, tbody, tr, td { display: block; width: 100%; }
tr { padding: .5rem 0; border-bottom: 1px solid var(--color-border); }
tr:last-child { border-bottom: 0; }
td { border: 0; padding: .25rem .8rem; }
td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--color-text-secondary); }
.draft-banner { position: relative; z-index: 2; margin: 0; padding: .6rem 1rem; text-align: center; background: #fff1c2; border-bottom: 1px solid #e6c85c; color: #5a4300; font-size: .9rem; }
.doc ol.clauses { padding-left: 1.2rem; }
.doc h2 .num { color: var(--color-text-secondary); font-weight: 400; margin-right: .3rem; }
