:root {
  color-scheme: light dark;
  --background: #f4f8f7;
  --surface: #fff;
  --text: #14272e;
  --muted: #52676d;
  --border: #d6e2df;
  --accent: #007e78;
  --soft: #e1f5ef;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d191e;
    --surface: #192a31;
    --text: #eef8f5;
    --muted: #b4c8cb;
    --border: #3b535b;
    --accent: #69e8cb;
    --soft: #203f40;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--background); color: var(--text); font: 17px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .6rem 1rem; z-index: 10; background: var(--surface); }
.skip-link:focus { top: .8rem; }
.site-header, .site-footer, main { width: min(100% - 3rem, 1040px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; font-size: 1.25rem; font-weight: 750; white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; font-weight: 650; }
main { padding-block: 3.5rem; }
.eyebrow { color: var(--accent); margin: 0 0 .5rem; font-size: .85rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); margin: 0 0 1rem; }
h2 { font-size: 1.45rem; margin: 0 0 .8rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
.intro { max-width: 720px; font-size: 1.1rem; color: var(--muted); }
.updated { color: var(--muted); font-size: .9rem; }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 2.5rem; margin-top: 2.5rem; }
.contents { align-self: start; position: sticky; top: 1.5rem; max-height: calc(100dvh - 3rem); overflow: auto; padding: 1.2rem; background: var(--soft); border-radius: 16px; font-size: .87rem; }
.contents h2 { font-size: .9rem; margin-bottom: .8rem; }
.contents ol { margin: 0; padding-left: 1.25rem; }
.contents li { margin-block: .55rem; }
.contents a { color: var(--text); }
.legal-content { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.8rem); min-width: 0; }
.legal-content section + section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.legal-content ul { padding-left: 1.4rem; }
.legal-content li { margin-block: .6rem; }
.notice { background: var(--soft); border-left: 3px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }
.notice p:last-child, section p:last-child { margin-bottom: 0; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.link-card { display: block; border: 1px solid var(--border); border-radius: 24px; padding: 2rem; background: var(--surface); text-decoration: none; color: var(--text); }
.link-card p { color: var(--muted); margin-bottom: 1.3rem; }
.link-card span { color: var(--accent); font-weight: 650; }
.site-footer { border-top: 1px solid var(--border); padding-block: 1.5rem 2.5rem; color: var(--muted); font-size: .86rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
@media (max-width: 760px) {
  .site-header, .site-footer, main { width: min(100% - 2rem, 1040px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  main { padding-block: 2.25rem; }
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .contents { position: static; max-height: none; overflow: visible; }
  .contents ol { columns: 2; column-gap: 1.5rem; }
  .contents li { break-inside: avoid; }
  .link-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .contents ol { columns: 1; } }
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-nav, .contents, .skip-link, .site-footer { display: none; }
  main, .site-header { width: 100%; padding-block: 1rem; }
  .legal-layout { display: block; margin-top: 1rem; }
  .legal-content { border: 0; padding: 0; }
  a { color: black; }
}
