﻿:root {
  color-scheme: light;
  --navy: #173a5e;
  --navy-dark: #102a45;
  --blue: #245f91;
  --blue-soft: #eaf2f8;
  --page: #f4f7fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #1f2937;
  --muted: #617083;
  --line: #dce5ed;
  --accent: #ef7e49;
  --shadow: 0 20px 55px rgba(25, 57, 86, 0.10);
  --shadow-soft: 0 10px 28px rgba(25, 57, 86, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(36, 95, 145, 0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0, var(--page) 340px);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-dark);
  box-shadow: var(--shadow-soft);
  transform: translateY(-160%);
}

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

.legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(24, 55, 82, 0.05);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 auto;
}

.product-home,
.site-wordmark-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: transform 170ms ease;
}

.product-home::before,
.site-wordmark-link::before {
  content: "";
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: url("/site-assets/brand-circle-check.svg") center / contain no-repeat;
}

.product-home:hover,
.site-wordmark-link:hover { transform: translateY(-1px); }

.product-home:focus-visible,
.site-wordmark-link:focus-visible {
  outline: 3px solid rgba(36, 95, 145, 0.20);
  outline-offset: 4px;
}

.site-wordmark {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.site-wordmark strong {
  display: block;
  color: var(--navy-dark);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.site-wordmark span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.header-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a.active {
  background: var(--blue-soft);
  color: var(--navy);
}

.header-nav .overview-link {
  margin-left: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.legal-main {
  width: min(1160px, calc(100% - 32px));
  flex: 1;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) 0 56px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 14%, rgba(36, 95, 145, 0.10), transparent 30%),
    linear-gradient(145deg, #ffffff, #f3f7fb);
  color: var(--text);
  box-shadow: var(--shadow);
}

.legal-hero::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 42px solid rgba(36, 95, 145, 0.06);
  border-radius: 50%;
}

.legal-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.legal-eyebrow {
  width: fit-content;
  margin: 0 0 15px;
  padding: 7px 11px;
  border: 1px solid rgba(36, 95, 145, 0.16);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  color: var(--navy-dark);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.legal-hero-summary {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 500;
  line-height: 1.68;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 25px;
  color: #728095;
  font-size: 10px;
  font-weight: 700;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legal-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 26px;
}

.legal-toc {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.legal-toc-title {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-toc nav { display: grid; gap: 4px; }

.legal-toc a {
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: var(--blue-soft);
  color: var(--navy);
}

.legal-document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-intro {
  padding: clamp(25px, 4vw, 39px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f7fafc, #ffffff);
}

.legal-intro strong { color: var(--navy); }

.legal-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
}

.legal-section {
  padding: clamp(25px, 4vw, 39px);
  border-bottom: 1px solid #e8eef3;
  scroll-margin-top: 24px;
}

.legal-section:last-child { border-bottom: 0; }

.section-number {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--navy-dark);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.legal-section h3 {
  margin: 24px 0 9px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.74;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-section li {
  padding-left: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.64;
}

.legal-callout {
  margin: 19px 0;
  padding: 18px 19px;
  border: 1px solid rgba(36, 95, 145, 0.15);
  border-left: 4px solid var(--blue);
  border-radius: 15px;
  background: var(--blue-soft);
}

.legal-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 13px;
}

.legal-callout p { margin: 0; font-size: 12px; }

.legal-warning {
  border-color: rgba(239, 126, 73, 0.22);
  border-left-color: var(--accent);
  background: #fff6f1;
}

.legal-warning strong { color: #a44b25; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.info-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.info-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-dark);
  font-size: 13px;
}

.info-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.58;
}

.contact-card {
  display: grid;
  gap: 17px;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(36, 95, 145, 0.17);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--blue-soft), #ffffff);
}

.contact-card-label {
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-email {
  width: fit-content;
  color: var(--navy);
  font-size: clamp(18px, 3vw, 27px);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.document-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.document-links a:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.legal-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 auto;
  padding: 22px 0;
}

.footer-copy {
  position: relative;
  padding-left: 54px;
}

.footer-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 40px;
  background: url("/site-assets/brand-circle-check.svg") center / contain no-repeat;
  transform: translateY(-50%);
}

.footer-copy strong {
  display: block;
  color: var(--navy-dark);
  font-size: 12px;
}

.footer-copy span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .header-nav a:not(.overview-link) { display: none; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: relative; top: auto; }
  .legal-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .header-inner { width: min(100% - 24px, 1160px); }

  .product-home::before,
  .site-wordmark-link::before {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .site-wordmark strong { font-size: 13px; }
  .site-wordmark span { font-size: 6.8px; }

  .header-nav .overview-link {
    padding: 8px 9px;
    font-size: 9px;
  }

  .legal-main {
    width: min(100% - 24px, 1160px);
    padding-top: 22px;
  }

  .legal-hero {
    padding: 29px 22px;
    border-radius: 22px;
  }

  .legal-hero h1 { font-size: clamp(34px, 12vw, 48px); }
  .legal-layout { margin-top: 16px; }

  .legal-toc {
    padding: 17px;
    border-radius: 17px;
  }

  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-document { border-radius: 20px; }

  .legal-intro,
  .legal-section { padding: 23px 20px; }

  .info-grid { grid-template-columns: 1fr; }

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

  .footer-links { justify-content: flex-start; }
}

@media print {
  .legal-header,
  .legal-toc,
  .legal-footer { display: none; }

  body { background: #fff; }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-hero,
  .legal-document {
    border: 0;
    box-shadow: none;
  }

  .legal-layout { display: block; }
}
