.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--primary, #172d78);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-page {
  min-height: 100vh;
  background: var(--background, #f8fafc);
  color: var(--foreground, #0f172a);
}

.legal-page .site-header {
  position: relative;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}

.legal-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  transition: background 180ms ease, color 180ms ease;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  background: #eff6ff;
  color: var(--primary, #172d78);
}

.legal-main {
  padding-bottom: 72px;
}

.legal-hero {
  padding: 64px 0 46px;
  border-bottom: 1px solid var(--border, #dbe3ee);
  background: #fff;
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--secondary, #0f766e);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-title {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 58px);
}

.legal-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted-text, #475569);
  font-size: 18px;
}

.legal-status {
  max-width: 760px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--action, #0f766e);
  border-radius: 8px;
  background: #fff7ed;
  color: #7c2d12;
}

.legal-status strong {
  flex: 0 0 auto;
}

.breadcrumb {
  padding: 16px 0 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #64748b;
  font-size: 14px;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 7px;
  color: #94a3b8;
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--primary, #172d78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 760px);
  gap: 58px;
  align-items: start;
  padding-top: 42px;
}

.legal-toc {
  position: sticky;
  top: 24px;
  padding: 18px;
  border: 1px solid var(--border, #dbe3ee);
  border-radius: 10px;
  background: #fff;
}

.legal-toc summary {
  min-height: 44px;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease;
}

.legal-toc summary:hover {
  background: #eff6ff;
  color: var(--primary, #172d78);
}

.legal-toc[open] summary {
  margin-bottom: 8px;
}

.legal-toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 7px 8px;
  border-radius: 6px;
  color: #475569;
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease;
}

.legal-toc a:hover {
  background: #eff6ff;
  color: var(--primary, #172d78);
}

.legal-article {
  min-width: 0;
}

.legal-section {
  scroll-margin-top: 24px;
}

.legal-page section[id] {
  scroll-margin-top: 24px;
}

.legal-section + .legal-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border, #dbe3ee);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3vw, 34px);
}

.legal-section h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

.legal-section p,
.legal-section li,
.legal-contact-card p {
  color: #334155;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section a:not(.button),
.legal-meta a:not(.button) {
  color: var(--primary, #172d78);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-section a:not(.button):hover,
.legal-meta a:not(.button):hover {
  color: var(--primary-dark, #172d78);
  text-decoration-thickness: 2px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 18px;
  padding-left: 24px;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--secondary, #0f766e);
  border-radius: 8px;
  background: #f0fdfa;
  color: #134e4a;
}

.legal-callout.warning {
  border-left-color: var(--action, #0f766e);
  background: #fff7ed;
  color: #7c2d12;
}

.legal-callout p:last-child,
.legal-callout :last-child {
  margin-bottom: 0;
}

.legal-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.legal-fact {
  padding: 18px;
  border: 1px solid var(--border, #dbe3ee);
  border-radius: 9px;
  background: #fff;
}

.legal-fact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--foreground, #0f172a);
  font-family: var(--font-sans, system-ui, sans-serif);
}

.legal-fact p {
  margin: 0;
  font-size: 15px;
}

.legal-definition-list {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--border, #dbe3ee);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.legal-definition-list dt,
.legal-definition-list dd {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #dbe3ee);
}

.legal-definition-list dt {
  background: #f1f5f9;
  color: #334155;
  font-weight: 750;
}

.legal-definition-list dd {
  color: #475569;
}

.legal-definition-list dt:last-of-type,
.legal-definition-list dd:last-of-type {
  border-bottom: 0;
}

.legal-contact-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
}

.legal-contact-card h2,
.legal-contact-card h3 {
  margin-bottom: 10px;
}

.legal-contact-card a:not(.button) {
  color: var(--primary, #172d78);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.legal-meta {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--border, #dbe3ee);
  color: #64748b;
  font-size: 14px;
}

.legal-footer {
  padding: 46px 0 22px;
  background: #0f172a;
  color: #cbd5e1;
}

.legal-footer .footer-grid p {
  color: #94a3b8;
}

.legal-footer .footer-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.legal-footer .footer-bottom {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .legal-page .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .legal-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-left: 0;
    overflow: visible;
  }

  .legal-nav a {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .legal-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-hero {
    padding: 46px 0 36px;
  }

  .legal-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .legal-summary {
    font-size: 17px;
  }

  .legal-status {
    display: block;
  }

  .legal-status strong {
    display: block;
    margin-bottom: 4px;
  }

  .legal-toc div,
  .legal-fact-grid {
    grid-template-columns: 1fr;
  }

  .legal-definition-list {
    grid-template-columns: 1fr;
  }

  .legal-definition-list dt,
  .legal-definition-list dd {
    border-bottom: 1px solid var(--border, #dbe3ee);
  }

  .legal-definition-list dd:last-of-type {
    border-bottom: 0;
  }

  .legal-contact-actions {
    display: grid;
  }

  .legal-contact-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .legal-nav a,
  .legal-toc a {
    transition-duration: 0.01ms !important;
  }
}
.contact-form {
  padding: clamp(20px, 4vw, 32px);
  margin-top: 24px;
  border: 1px solid #cde4e3;
  border-radius: 20px;
  background: #f3faf9;
}
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-field { min-width: 0; margin-bottom: 22px; }
.contact-field label { display: block; margin-bottom: 8px; font-weight: 650; color: #12316c; }
.contact-field label span { color: #526170; font-weight: 400; font-size: 14px; }
.contact-field input, .contact-field textarea {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #9dbbbd; border-radius: 10px; background: #fff;
  color: #172944; font: inherit; font-size: 16px;
}
.contact-field textarea { resize: vertical; line-height: 1.6; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible,
.contact-consent input:focus-visible { outline: 3px solid #078589; outline-offset: 3px; }
.contact-field p, .contact-form .contact-footnote { margin: 8px 0 0; font-size: 14px; color: #526170; }
.contact-consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; font-size: 14px; line-height: 1.65; cursor: pointer; }
.contact-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 3px 0 0; accent-color: #007b7d; }
.contact-form .button { cursor: pointer; min-height: 48px; }
.contact-trap { display: none; }
.contact-response { max-width: 680px; margin: 8vh auto; padding: 28px; }
.contact-response h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.2; margin-top: 32px; }
.contact-response p { margin: 24px 0; line-height: 1.7; }
@media (max-width: 620px) {
  .contact-form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form .button { width: 100%; justify-content: center; }
}
