:root {
  color-scheme: light;
  --accent: #ff3f55;
  --accent-dark: #d9253c;
  --accent-soft: #fff0f2;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #ffffff;
  --background: #f5f6f8;
  --success: #168a51;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

a { color: var(--accent-dark); text-underline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1080px);
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
}

.brand span { display: grid; min-width: 0; }
.brand strong { font-size: 16px; line-height: 1.25; }
.brand small { color: var(--muted); font-size: 12px; line-height: 1.35; }

.language-control {
  display: grid;
  grid-template-columns: auto minmax(150px, 190px);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.language-control select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
}

.language-control select:focus-visible,
.document-links a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(255, 63, 85, 0.25);
  outline-offset: 3px;
}

.page-main {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: 40px 0 64px;
}

.document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.06);
  padding: clamp(28px, 5vw, 56px);
}

.document::before {
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.document-kind {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.effective-date { color: var(--muted); font-size: 13px; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.14;
  letter-spacing: 0;
}

.document-summary {
  max-width: 760px;
  margin: 18px 0 0;
  color: #475467;
  font-size: 17px;
}

.notice {
  margin-top: 28px;
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  color: #7a2632;
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
}

.section-list { margin-top: 38px; }

.legal-section {
  border-top: 1px solid var(--line);
  padding: 30px 0 4px;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.legal-section p { margin: 0 0 13px; color: #344054; }

.document-footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.document-footer p { margin: 0 0 16px; }

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 7px 12px;
  color: #344054;
  background: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.document-links a[aria-current="page"] {
  border-color: rgba(255, 63, 85, 0.25);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

@media (max-width: 680px) {
  .header-inner { width: min(100% - 28px, 1080px); min-height: 68px; gap: 12px; }
  .brand img { width: 40px; height: 40px; margin-right: 9px; border-radius: 9px; }
  .brand small { display: none; }
  .language-control { grid-template-columns: minmax(118px, 150px); }
  .language-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .page-main { width: 100%; padding: 0 0 36px; }
  .document { border: 0; border-radius: 0; box-shadow: none; padding: 28px 20px 38px; }
  h1 { font-size: 32px; }
  .document-summary { font-size: 16px; }
  .document-meta { align-items: flex-start; flex-direction: column; }
  .document-links { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
