/* Light MauiTheme: system background, secondary surface, accent and 8/16/20pt rhythm. */
:root {
  color-scheme: light;
  --canvas: #fff;
  --surface: #f2f2f7;
  --accent: #1f57b3;
  --accent-hover: #17468f;
  --ink: #141820;
  --secondary: #505b6d;
  --line: #e2e7ef;
  --blue-wash: #eaf1fd;
  --blue-line: #cfdef6;
  --space: 16px;
  --space-compact: 8px;
  --radius: 20px;
  --readable: 760px;
  --wrap: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
img { display: block; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 3; padding: 12px; background: white; transform: translateY(-140%); }
.skip:focus { transform: none; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-header { min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 17px; font-weight: 680; letter-spacing: -.035em; white-space: nowrap; text-decoration: none; }
.brand img { object-fit: cover; }
.top-nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: 26px; }
.top-nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 550; }
.top-nav a:hover, .site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); padding-block: 18px 24px; }
.site-footer .brand { font-size: 15px; }

.legal { min-height: 100vh; }
.legal-main { padding-block: 50px 68px; }
.back { font-size: .9rem; font-weight: 650; }
.legal-head { padding-block: 24px 32px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(2.75rem, 6.7vw, 5.15rem); letter-spacing: -.07em; font-weight: 690; }
.legal-head > p { margin-top: 13px; max-width: 64ch; color: var(--secondary); font-size: 1.08rem; }
.legal-layout { display: grid; grid-template-columns: minmax(155px, 205px) minmax(0, var(--readable)); gap: clamp(28px, 5vw, 74px); padding-top: 32px; }
.legal-toc { align-self: start; position: sticky; top: 18px; }
.legal-toc p { font-weight: 650; margin-bottom: 6px; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.legal-toc a { display: inline-flex; align-items: center; min-height: 38px; padding: 4px 12px; font-size: .91rem; }
.legal-document section { scroll-margin-top: 16px; }
.legal-document section + section { margin-top: 32px; }
.legal-document h2 { margin-bottom: 11px; font-size: clamp(1.28rem, 2.4vw, 1.57rem); letter-spacing: -.036em; }
.legal-document p, .legal-document li { color: var(--secondary); }
.legal-document p + p { margin-top: 12px; }
.legal-document ul { padding-left: 1.35em; margin-block: 12px; }
.legal-document li + li { margin-top: 7px; }
.legal-document strong { color: var(--ink); }
.legal-callout { background: var(--blue-wash); border-radius: 12px; padding: 14px 18px; margin-bottom: 28px; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 65px; }
  .top-nav, .site-footer nav { column-gap: 16px; }
  .site-footer { padding-block: 10px 14px; }
  .site-footer nav a { font-size: .8rem; }
  .legal-main { padding-block: 27px 42px; }
  .legal-layout { grid-template-columns: 1fr; gap: 23px; padding-top: 23px; }
  .legal-toc { position: static; padding: 12px 16px; background: var(--surface); border-radius: 12px; }
  .legal-toc ul { display: flex; flex-wrap: wrap; border: 0; column-gap: 13px; }
  .legal-toc a { padding-inline: 0; min-height: 34px; }
}
