@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/legal/fonts/poppins-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/legal/fonts/poppins-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/legal/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/legal/fonts/poppins-latin-700-normal.woff2') format('woff2');
}

:root {
  --font-poppins: 'Poppins';
  --font-noto-sans: 'Noto Sans';
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 2rem;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-text);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--color-ink); }

a:focus-visible, button:focus-visible, summary:focus-visible, h2:focus {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  inset-block-start: -5rem;
  inset-inline-start: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  background: var(--color-paper-2);
}

.skip-link:focus { inset-block-start: 1rem; }

.site-header { border-block-end: 1px solid var(--color-rule); }

.header-inner, .legal-layout, .footer-inner {
  width: min(100% - 4rem, 76rem);
  margin-inline: auto;
}

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

.brand, .header-actions, .back-link, .theme-toggle {
  display: inline-flex;
  align-items: center;
}

.brand {
  min-height: 44px;
  gap: 0.625rem;
  color: var(--color-ink);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark { display: grid; place-items: center; }
.brand-mark img { display: block; }
.brand-mark .logo-light, .theme-icon-dark { display: none; }
[data-theme='light'] .logo-dark, [data-theme='light'] .theme-icon-light { display: none; }
[data-theme='light'] .logo-light, [data-theme='light'] .theme-icon-dark { display: block; }

.header-actions { gap: 1.5rem; }

.back-link, .theme-toggle {
  min-height: 44px;
  gap: 0.5rem;
  color: var(--color-ink-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

.theme-toggle {
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.theme-toggle:hover { color: var(--color-ink); background: var(--color-paper-2); }
.theme-toggle:active { color: var(--color-accent-text); }

.legal-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 75ch);
  justify-content: center;
  gap: 4rem;
  padding-block: 3.5rem 5rem;
}

.legal-sidebar {
  position: sticky;
  top: 2rem;
  min-width: 0;
  max-height: calc(100dvh - 4rem);
  align-self: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.25rem;
}

summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-ink-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
details[open] > summary svg { transform: rotate(180deg); }

.document-menu > summary {
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.document-menu nav { display: grid; gap: 0.25rem; margin-block-start: 0.5rem; }

.document-menu nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.document-menu nav a:hover { color: var(--color-ink); background: var(--color-paper-2); }

.document-menu nav a[aria-current='page'] {
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
  font-weight: 500;
}

.contents-menu {
  margin-block-start: 1.5rem;
  padding-block-start: 0.75rem;
  border-block-start: 1px solid var(--color-rule);
}

.contents-menu ol { margin: 0.375rem 0 0; padding: 0; list-style: none; }
.contents-menu a {
  display: block;
  min-height: 44px;
  padding: 0.75rem 0.25rem;
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contents-menu a:hover { color: var(--color-accent-text); }
main, article { min-width: 0; }
article { overflow-wrap: anywhere; }

h1, h2, h3 { color: var(--color-ink); }
h1 { margin: 0; font-size: 2.5rem; font-weight: 700; line-height: 1.18; letter-spacing: -0.035em; }
h2 { margin: 3rem 0 0.875rem; font-size: 1.375rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; }
h3 { margin: 1.75rem 0 0.625rem; font-size: 1rem; font-weight: 600; line-height: 1.5; }
p { margin: 0 0 1rem; }
p, li { color: var(--color-ink-secondary); }
strong { color: var(--color-ink); font-weight: 600; }
ul, ol { padding-inline-start: 1.5rem; }
li + li { margin-block-start: 0.625rem; }
li::marker { color: var(--color-ink-muted); }

.eyebrow {
  margin-block-end: 0.75rem;
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.updated { margin-block: 1rem 2.5rem; color: var(--color-ink-muted); font-size: 0.8125rem; }
.notice {
  margin-block: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  background: var(--color-paper-2);
  font-size: 0.875rem;
}

.notice p:last-child { margin-block-end: 0; }
.business-identity { padding-block: 1rem; }

/* Support categories are a scan-friendly list, not another card grid. */
.grid { margin-block: 2rem; }
.card {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  column-gap: 1.5rem;
  padding-block: 1.5rem;
  border-block-end: 1px solid var(--color-rule);
}
.card h2 { grid-row: span 2; margin: 0; font-size: 1rem; }
.card p { margin: 0 0 0.375rem; font-size: 0.875rem; }
.card p:last-child { margin: 0; }
.card p:last-child a { display: inline-flex; min-height: 44px; align-items: center; }

.site-footer { border-block-start: 1px solid var(--color-rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.copyright, .operator { margin: 0; color: var(--color-ink-muted); font-size: 0.75rem; }
.operator { margin-block-start: 0.25rem; font-size: 0.6875rem; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; gap: 0.5rem; flex-shrink: 0; color: var(--color-ink-muted); font-size: 0.8125rem; text-decoration: none; }

@media (max-width: 1023px) {
  .legal-layout { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 767px) {
  .header-inner, .legal-layout, .footer-inner { width: min(100% - 2rem, 48rem); }
  .header-inner { min-height: 4rem; }
  .brand { font-size: 1.125rem; }
  .header-actions { gap: 0.5rem; }
  .theme-toggle { width: 44px; padding: 0; }
  [data-theme-label] { display: none; }
  .back-link { padding-inline: 0.5rem; }
  .back-link svg { display: none; }
  .legal-layout { display: block; padding-block: 1.25rem 3rem; }
  .legal-sidebar { position: static; max-height: none; overflow: visible; padding: 0; margin-block-end: 2rem; }
  .document-menu, .contents-menu { margin: 0; padding-block: 0.25rem; border: 0; border-block-end: 1px solid var(--color-rule); }
  .document-menu > summary { font-size: 0.8125rem; letter-spacing: normal; }
  .document-menu nav { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 0.5rem; }
  .contents-menu ol { padding-block-end: 0.75rem; }
  h1 { font-size: 2rem; }
  h2 { margin-block-start: 2.5rem; font-size: 1.25rem; }
  .updated { margin-block-end: 2rem; }
  .notice { padding: 1rem; }
  .card { grid-template-columns: 1fr; gap: 0.375rem; }
  .card h2 { grid-row: auto; margin-block-end: 0.25rem; }
  .footer-inner { flex-wrap: wrap; gap: 0.5rem; }
}

@media print {
  .site-header, .legal-sidebar, .site-footer, .skip-link { display: none; }
  body { color: CanvasText; background: Canvas; font-size: 11pt; }
  .legal-layout { display: block; width: auto; padding: 0; }
  p, li, h1, h2, h3, strong, a { color: inherit; }
  .notice { border: 1px solid GrayText; background: none; break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}

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