:root {
  color-scheme: light dark;
  --bg: #f6f5fb;
  --surface: rgba(255, 255, 255, .74);
  --glass: rgba(246, 245, 251, .88);
  --text: #16131f;
  --muted: #5e5973;
  --line: rgba(40, 25, 90, .10);
  --accent: #5b3fd6;
  --accent-soft: rgba(139, 108, 255, .10);
  --ring: #7a5af8;
  --glow-violet: rgba(139, 108, 255, .18);
  --glow-pink: rgba(232, 106, 192, .11);
  --glow-peach: rgba(255, 176, 112, .08);
  --radius: 18px;
  --width: 1104px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08070d;
    --surface: rgba(255, 255, 255, .045);
    --glass: rgba(8, 7, 13, .90);
    --text: #f7f5ff;
    --muted: #aca7c3;
    --line: rgba(255, 255, 255, .12);
    --accent: #cdbdff;
    --accent-soft: rgba(180, 156, 255, .10);
    --ring: #b49cff;
    --glow-violet: rgba(124, 77, 255, .14);
    --glow-pink: rgba(255, 92, 168, .07);
    --glow-peach: transparent;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; }
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 690px; z-index: -1;
  background: radial-gradient(ellipse at 6% 0, var(--glow-violet), transparent 60%),
    radial-gradient(ellipse at 95% 0, var(--glow-pink), transparent 58%),
    radial-gradient(ellipse at 55% 0, var(--glow-peach), transparent 56%);
  pointer-events: none;
}
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--ring); outline-offset: 5px; border-radius: 4px; }
.skip { position: fixed; top: 8px; left: 16px; z-index: 10; padding: 8px 16px; background: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { width: min(var(--width), calc(100% - 80px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 3; background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { display: block; width: 155px; height: 40px; }
.document-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.document-nav a { display: inline-flex; min-height: 40px; align-items: center; padding: 4px 18px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.document-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.document-nav a:hover { color: var(--text); }
.hero { padding-block: 64px 44px; max-width: 790px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb span[aria-hidden] { opacity: .5; }
h1 { margin: 0; font-size: clamp(40px, 5.7vw, 64px); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; }
.intro { margin: 22px 0 20px; max-width: 650px; color: var(--muted); font-size: 20px; line-height: 1.6; letter-spacing: -.015em; }
.updated { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.updated span { display: inline-flex; align-items: center; gap: 7px; }
.updated svg { width: 15px; height: 15px; }
.reading-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 70px; align-items: start; padding-bottom: 72px; }
.sidebar { position: sticky; top: 120px; }
.toc summary { list-style: none; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { width: 16px; height: 16px; transition: transform .2s; }
.toc[open] summary svg { transform: rotate(180deg); }
.toc nav { display: grid; gap: 3px; margin-top: 4px; }
.toc a { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: baseline; padding: 9px 12px; min-height: 44px; text-decoration: none; font-size: 13px; color: var(--muted); border-radius: 10px; border-left: 2px solid transparent; line-height: 1.5; }
.toc a span { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .7; }
.toc a:hover { background: var(--surface); color: var(--text); }
.toc a[aria-current="location"] { border-left-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.side-contact { margin-top: 28px; padding: 20px 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.side-contact p { margin: 0 0 5px; }
.side-contact a { overflow-wrap: anywhere; }
.article { min-width: 0; max-width: 735px; }
.key-note { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px; border-radius: var(--radius); background: var(--accent-soft); margin-bottom: 36px; color: var(--text); }
.key-note svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.key-note p { margin: 0; font-size: 15px; line-height: 1.65; }
.article section { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.article section:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.section-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-number { color: var(--accent); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 20px; }
h2 { font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; margin: 0; }
h3 { font-size: 17px; line-height: 1.5; margin: 24px 0 8px; font-weight: 600; }
.article p { margin: 0 0 16px; }
.article p:last-child { margin-bottom: 0; }
.article ul { margin: 0 0 16px; padding-left: 22px; }
.article li { padding-left: 4px; margin-bottom: 10px; }
.article li::marker { color: var(--accent); }
.article strong { font-weight: 600; }
.article a { overflow-wrap: anywhere; }
.provider-list { margin: 18px 0; }
.provider-list div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.provider-list div:last-child { border-bottom: 0; }
.provider-list dt { font-weight: 600; margin-bottom: 4px; }
.provider-list dd { margin: 0; color: var(--muted); font-size: 15px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); text-decoration: none; min-height: 24px; }
.footer-inner a:hover { color: var(--accent); text-decoration: underline; }
.legal-home { min-height: calc(100svh - 175px); padding-bottom: 80px; }
.document-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 850px; }
.document-card { display: block; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.document-card:hover { border-color: var(--ring); transform: translateY(-2px); }
.document-card .doc-icon { width: 44px; height: 44px; padding: 11px; background: var(--accent-soft); border-radius: 50%; color: var(--accent); margin-bottom: 28px; }
.document-card h2 { font-size: 24px; margin-bottom: 10px; }
.document-card p { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.document-card .read { display: flex; gap: 8px; align-items: center; color: var(--accent); font-size: 14px; font-weight: 600; }
.document-card .read svg { width: 16px; height: 16px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .reading-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 30px; }
  .hero { padding-top: 48px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 98px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 78px; gap: 12px; }
  .brand img { width: 120px; height: 31px; }
  .document-nav { border: 0; gap: 0; padding: 0; }
  .document-nav a { padding-inline: 11px; min-height: 44px; font-size: 13px; }
  .hero { padding-block: 38px 28px; }
  .breadcrumb { margin-bottom: 20px; font-size: 12px; }
  h1 { font-size: clamp(36px, 9.8vw, 46px); }
  .intro { font-size: 17px; margin-top: 18px; }
  .updated { font-size: 12px; gap: 6px 16px; }
  .reading-layout { display: block; padding-bottom: 48px; }
  .sidebar { position: static; margin-bottom: 28px; }
  .toc { padding: 6px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .toc nav { margin-bottom: 10px; }
  .side-contact { display: none; }
  .key-note { padding: 18px; margin-bottom: 30px; }
  .key-note p { font-size: 14px; }
  .article { font-size: 15px; line-height: 1.8; }
  .article section { scroll-margin-top: 98px; padding-bottom: 26px; margin-bottom: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 16px; }
  .section-heading { gap: 10px; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .footer-inner nav { gap: 20px; }
  .legal-home { min-height: calc(100svh - 225px); padding-bottom: 48px; }
  .document-cards { grid-template-columns: 1fr; gap: 14px; }
  .document-card { padding: 24px; }
  .document-card .doc-icon { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root { color-scheme: light; --bg: white; --text: #16131f; --muted: #444; --line: #ddd; --accent: #16131f; }
  body::before, .document-nav, .sidebar, .site-footer, .skip { display: none; }
  .site-header { position: static; background: none; border-bottom: 1px solid #ddd; }
  .wrap { width: 100%; }
  .header-inner { min-height: 62px; }
  .hero { padding-block: 24px; }
  h1 { font-size: 32pt; }
  .intro { font-size: 12pt; }
  .reading-layout { display: block; }
  .article { max-width: none; font-size: 10pt; }
  .article section { break-inside: auto; }
  h2, h3, .section-heading { break-after: avoid; }
  .key-note { background: none; border: 1px solid #ddd; }
  a { color: inherit; }
}
