:root {
  --background: #f6f6f4;
  --surface: #ffffff;
  --text: #101010;
  --muted: #5f625f;
  --muted-strong: #3f423f;
  --border: #deded8;
  --border-strong: #c9c9c2;
  --accent: #b7ff1a;
  --shadow: 0 8px 24px rgba(16, 16, 16, 0.07);
  --radius: 8px;
  --container: 1120px;
  --narrow: 760px;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 0.14em; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 9vw, 7rem); }
.page-hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; }

p,
ul,
ol,
dl,
table { margin-top: 0; }

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child { margin-bottom: 0; }

ul,
ol { padding-left: 1.35rem; }
li + li { margin-top: 0.35rem; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.narrow { width: min(100% - 32px, var(--narrow)); }

.section { padding: 72px 0; }
.section-tight { padding-top: 28px; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 246, 244, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a,
.site-footer a {
  border-radius: var(--radius);
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a { padding: 0.6rem 0.75rem; }

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy { max-width: 680px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.25rem 0.65rem;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
}

.muted { color: var(--muted); }

.effective-date {
  display: inline-flex;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.55rem 0.75rem;
  color: var(--muted-strong);
  font-weight: 700;
}

.legal-card,
.card,
.notice,
.toc,
.legal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card { padding: 1rem; }
.legal-card h2 { margin-bottom: 1rem; font-size: 1.15rem; }

.link-list {
  display: grid;
  gap: 0.6rem;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.link-list a:hover {
  border-color: var(--text);
  background: var(--accent);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.notice { padding: 1.25rem; }

.notice {
  border-color: var(--text);
  background: var(--accent);
  box-shadow: none;
}

.notice p,
.notice h2 { color: var(--text); }

.section-heading { margin-bottom: 1rem; }

.detail-list {
  display: grid;
  gap: 0.75rem;
}

.detail-list div {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.detail-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-list dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.content-layout-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 1rem;
  box-shadow: none;
}

.toc h2 { font-size: 1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }

.toc a {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

.legal-content { padding: 1.35rem; }

.legal-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-section:last-child { padding-bottom: 0; }
.legal-section h2 { scroll-margin-top: 96px; }
.legal-section h3 { margin-top: 1.25rem; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eeeeea;
  font-size: 0.9rem;
}

tr:last-child td { border-bottom: 0; }

.button-row { margin-top: 1rem; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-weight: 850;
  text-decoration: none;
}

.button:hover { background: var(--surface); }

.path {
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--accent);
  padding: 0.8rem;
  color: var(--text);
  font-weight: 850;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 920px) {
  .hero-grid,
  .two-column,
  .content-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .toc { position: static; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .section-tight { padding-top: 20px; }

  .header-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 0.75rem 0;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding-top: 0.25rem;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.8rem;
  }

  .card-grid { grid-template-columns: 1fr; }
  .legal-content { padding: 1rem; }
  .legal-section { padding: 1.25rem 0; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .container,
  .narrow { width: min(100% - 24px, var(--container)); }
  h1 { font-size: clamp(2.6rem, 18vw, 4rem); }
  .page-hero h1 { font-size: clamp(2.2rem, 15vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
