:root {
  --ink: #15182a;
  --muted: #62697a;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --line: #dfe4e8;
  --green: #087f73;
  --green-dark: #075d56;
  --coral: #ff5a3c;
  --soft: #e9f8f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--green) 0 6px, transparent 6px),
    var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.page,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
}

.brand-word {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.07em;
}

.pin {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  color: #fff;
  background: var(--coral);
  font-size: 10px;
  font-weight: 800;
  transform: rotate(-45deg);
}

.pin span {
  transform: rotate(45deg);
}

.back-link {
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  justify-content: space-between;
  gap: 64px;
  padding-block: 64px 88px;
}

.legal-nav {
  position: sticky;
  top: 28px;
  align-self: start;
}

.nav-label,
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  margin-left: 7px;
  padding: 11px 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  border-left: 3px solid var(--coral);
  color: var(--ink);
  font-weight: 750;
}

.document {
  min-width: 0;
}

.document-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.updated {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-section {
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.legal-section p {
  margin: 0 0 12px;
  color: #34394a;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.72;
}

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

.contact-card {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid #b8e8de;
  border-radius: 18px;
  background: var(--soft);
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.contact-card p {
  margin: 0;
  color: var(--green-dark);
  line-height: 1.6;
}

.contact-card a {
  font-weight: 800;
}

.site-footer {
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

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

@media (max-width: 760px) {
  body {
    background: var(--paper);
    border-top: 6px solid var(--green);
  }

  .header-inner,
  .page,
  .site-footer {
    width: min(100% - 32px, 680px);
  }

  .header-inner {
    min-height: 68px;
  }

  .page {
    display: block;
    padding-block: 40px 64px;
  }

  .legal-nav {
    position: static;
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-label {
    display: none;
  }

  .legal-nav a {
    flex: 0 0 auto;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }

  .legal-nav a[aria-current="page"] {
    border: 1px solid var(--green);
    color: #fff;
    background: var(--green);
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .legal-section p {
    font-size: 17px;
  }
}

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