/* ================= Design Tokens ================= */
:root {
  --ink: #17212b;
  --muted: #71808c;
  --line: #e5e9ed;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --teal: #167d78;
  --teal-dark: #0d5f5b;
  --coral: #e7745f;
  --shadow: 0 8px 20px rgba(36, 64, 58, 0.06);
  --radius: 8px;
}

/* ================= Reset & Base ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
}

h1,
h2,
h3 {
  font-family: Georgia, serif;
  line-height: 1.25;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--teal-dark);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 200;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  left: 0;
}

/* ================= Header / Nav ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

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

.brand h1 {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
}

.brand-mark-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a[aria-current="page"] {
  color: var(--teal-dark);
  font-weight: bold;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

/* ================= Buttons ================= */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--paper);
  box-shadow: 0 6px 16px rgba(22, 125, 120, 0.25);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--paper);
  transform: translateY(-2px);
}

/* ================= Page hero ================= */
.page-hero {
  background: linear-gradient(145deg, #f7faf8 0%, #edf3f0 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}

.breadcrumb {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 6px;
  color: var(--line);
}

.page-hero h2 {
  font-size: 38px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--teal-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ================= Article layout ================= */
.legal-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 56px 0 72px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.toc h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 6px;
}

.toc a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--muted);
}

.toc a::before {
  content: counter(toc) ".";
  color: var(--coral);
  font-weight: bold;
}

.toc a:hover {
  color: var(--teal);
}

.legal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}

.legal section {
  margin-bottom: 34px;
}

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

.legal h3 {
  font-size: 21px;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  scroll-margin-top: 110px;
}

.legal h3 .sec-num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--coral);
  color: var(--paper);
  border-radius: 50%;
  font-size: 14px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  box-shadow: 0 5px 12px rgba(231, 116, 95, 0.28);
}

.legal p {
  margin-bottom: 12px;
}

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

.legal ul {
  margin: 0 0 12px 22px;
}

.legal li {
  margin-bottom: 6px;
}

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

.callout {
  background: var(--canvas);
  border-left: 5px solid var(--teal);
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 34px;
  font-size: 15px;
}

.do-not-collect {
  background: #fdf3ef;
  border-left: 5px solid var(--coral);
}

/* ================= Footer ================= */
.site-footer {
  background: var(--ink);
  color: #cfd8de;
  padding: 40px 0;
  font-size: 14px;
}

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

.site-footer a {
  color: #cfd8de;
  text-decoration: none;
  margin-left: 18px;
}

.site-footer a:hover {
  color: var(--coral);
}

/* ================= Reduced motion / print / mobile ================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {

  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .legal {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  body {
    background: #fff;
  }
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-hide-mobile {
    display: none;
  }

  .nav-cta {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  .page-hero h2 {
    font-size: 29px;
  }

  .legal {
    padding: 28px 22px;
  }

  .site-footer a {
    margin-left: 0;
    margin-right: 18px;
  }
}