:root {
  --navy: #003670;
  --navy-deep: #001f45;
  --signal: #0ca89c;
  --signal-soft: #e3f6f3;
  --surface: #f7f9fc;
  --border: #dce4ed;
  --text: #0b162b;
  --mute: #30405c;
  --faint: #536078;
  --display: "Space Grotesk", sans-serif;
  --serif: "Playfair Display", serif;
  --mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #fff;
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(227, 246, 243, 0.65), transparent 340px),
    repeating-linear-gradient(180deg, rgba(0, 54, 112, 0.025) 0, rgba(0, 54, 112, 0.025) 1px, transparent 1px, transparent 36px);
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 0;
  padding-top: calc(14px + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(220, 228, 237, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(0, 31, 69, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy-deep);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  border-color: var(--signal);
  background: var(--signal-soft);
  transform: translateY(-1px);
}

main {
  padding: 76px 0 108px;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 54, 112, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body h1 {
  max-width: 780px;
  color: var(--navy-deep);
  font-size: clamp(40px, 7vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.intro {
  max-width: 720px;
  margin-top: 24px;
  color: var(--mute);
  font-size: 18px;
  line-height: 1.65;
}

.updated {
  margin-top: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

.legal-content {
  display: grid;
  gap: 16px;
  margin-top: 58px;
}

.legal-content section {
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 36px rgba(0, 31, 69, 0.045);
}

body h2 {
  margin-bottom: 14px;
  color: var(--navy-deep);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

body h3 {
  margin: 24px 0 8px;
  color: var(--navy-deep);
  font-size: 17px;
  line-height: 1.4;
}

p + p {
  margin-top: 14px;
}

.legal-content p,
.legal-content li {
  color: var(--mute);
}

.legal-content ul,
.legal-content ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-content li {
  padding-left: 4px;
}

.legal-content li::marker {
  color: var(--signal);
  font-weight: 700;
}

.legal-content li + li {
  margin-top: 9px;
}

.callout {
  margin-top: 20px;
  padding: 20px 22px;
  border-left: 3px solid var(--signal);
  border-radius: 0 12px 12px 0;
  background: var(--signal-soft);
  color: var(--navy-deep);
}

.contact-box {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.contact-box a {
  font-weight: 700;
}

.accordion-section h2 {
  margin: 0;
}

.section-dropdown-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 18px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.section-dropdown-label {
  min-width: 0;
}

.section-dropdown-icon {
  width: 40px;
  height: 40px;
  justify-self: end;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.section-dropdown-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translate(-50%, -68%) rotate(45deg);
}

.section-dropdown-toggle:hover .section-dropdown-icon {
  border-color: var(--signal);
  background: var(--signal-soft);
}

.section-dropdown-toggle[aria-expanded="true"] .section-dropdown-icon {
  transform: rotate(180deg);
}

.section-dropdown-content {
  padding-top: 18px;
}

.section-dropdown-content[hidden] {
  display: none;
}

footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(247, 249, 252, 0.8);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
}

footer nav {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mute);
  text-decoration: none;
}

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

@media (max-width: 720px) {
  .wrap {
    width: min(calc(100% - 36px), 900px);
  }

  main {
    padding: 58px 0 82px;
  }

  body h1 {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.06;
  }

  .intro {
    font-size: 16px;
  }

  .legal-content {
    gap: 14px;
    margin-top: 44px;
  }

  .legal-content section {
    padding: 26px;
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(calc(100% - 28px), 900px);
  }

  .site-header {
    padding-bottom: 12px;
  }

  .site-header .wrap {
    gap: 10px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 31px;
    height: 31px;
  }

  .back-link {
    min-height: 42px;
    max-width: 52%;
    padding: 8px 12px;
    font-size: 9px;
  }

  main {
    padding: 44px 0 68px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  body h1 {
    font-size: clamp(32px, 10.5vw, 40px);
    letter-spacing: -0.035em;
  }

  .intro {
    margin-top: 18px;
    line-height: 1.6;
  }

  .updated {
    margin-top: 18px;
  }

  .legal-content {
    gap: 12px;
    margin-top: 36px;
  }

  .legal-content section {
    padding: 22px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 31, 69, 0.04);
  }

  body h2 {
    font-size: 20px;
    line-height: 1.3;
  }

  body h3 {
    font-size: 16px;
  }

  .section-dropdown-toggle {
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 12px;
  }

  .section-dropdown-icon {
    width: 36px;
    height: 36px;
  }

  .section-dropdown-content {
    padding-top: 16px;
  }

  .callout,
  .contact-box {
    padding: 17px 16px;
  }

  footer .wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .back-link {
    max-width: 50%;
    padding-inline: 10px;
  }

  footer nav {
    grid-template-columns: 1fr;
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }
}
