:root {
  --mint: #f1f9f3;
  --mint-deep: #e3f2e8;
  --olive: #5b705f;
  --olive-dark: #294238;
  --ink: #1d2a24;
  --muted: #68766f;
  --coral: #ff746d;
  --coral-dark: #c84f50;
  --gold: #f4b85b;
  --white: #ffffff;
  --line: #d6e5da;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid rgba(255, 116, 109, .42);
  outline-offset: 3px;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(214, 229, 218, .86);
  background: rgba(241, 249, 243, .94);
  backdrop-filter: blur(18px);
}

.legal-nav-shell {
  width: min(var(--max), 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--olive-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--olive);
}

.brand-mark svg { width: 22px; height: 22px; }

.legal-nav-links {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.legal-nav-links::-webkit-scrollbar { display: none; }

.legal-nav-links a {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.legal-nav-links a:hover,
.legal-nav-links a[aria-current="page"] {
  color: var(--olive-dark);
  background: var(--mint-deep);
}

.legal-hero {
  padding: 84px 22px 66px;
  border-bottom: 1px solid var(--line);
  background: var(--mint);
}

.legal-hero-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2 {
  color: var(--olive-dark);
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(44px, 6.2vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.legal-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.effective-date {
  margin: 24px 0 0;
  color: var(--olive);
  font-size: 12px;
  font-weight: 750;
}

.legal-main {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 64px 22px 100px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 2px;
}

.legal-toc strong {
  margin-bottom: 10px;
  color: var(--olive-dark);
  font-size: 12px;
}

.legal-toc a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a:hover { color: var(--coral-dark); }

.legal-content { min-width: 0; }

.legal-content section {
  scroll-margin-top: 96px;
  padding: 0 0 42px;
  margin: 0 0 42px;
  border-bottom: 1px solid var(--line);
}

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

.legal-content h2 {
  margin: 0 0 16px;
  font-size: 31px;
  line-height: 1.12;
}

.legal-content h3 {
  margin: 25px 0 9px;
  color: var(--olive-dark);
  font-size: 16px;
}

.legal-content p,
.legal-content li {
  color: #4f5e56;
  font-size: 15px;
  line-height: 1.72;
}

.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol { margin: 12px 0 0; padding-left: 22px; }
.legal-content li + li { margin-top: 8px; }
.legal-content a { color: var(--coral-dark); font-weight: 700; }

.plain-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.plain-table th,
.plain-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.plain-table th {
  color: var(--olive-dark);
  background: var(--mint);
}

.plain-table td { color: #4f5e56; }

.notice {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: #fff8e9;
}

.notice.coral {
  border-left-color: var(--coral);
  background: #fff2f0;
}

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

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  border-top: 1px solid var(--line);
}

.contact-option {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-option strong {
  display: block;
  margin-bottom: 7px;
  color: var(--olive-dark);
}

.contact-option span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-option a {
  display: inline-block;
  margin-top: 11px;
}

.legal-footer {
  padding: 36px 22px;
  border-top: 1px solid var(--line);
  background: var(--mint);
}

.legal-footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.legal-footer a { color: var(--olive-dark); text-decoration: none; font-weight: 700; }
.legal-footer a:hover { color: var(--coral-dark); }

@media (max-width: 780px) {
  .legal-nav-shell { padding: 10px 14px 8px; gap: 6px 14px; flex-wrap: wrap; }
  .brand { font-size: 19px; }
  .brand-mark { width: 30px; height: 30px; }
  .legal-nav-links {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 2px;
    overflow: visible;
  }
  .legal-nav-links a { min-height: 34px; padding: 0 5px; font-size: 11px; }
  .legal-hero { padding: 62px 16px 48px; }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .legal-lead { font-size: 15px; }
  .legal-main { padding: 42px 16px 72px; grid-template-columns: 1fr; gap: 36px; }
  .legal-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .legal-toc a { padding: 6px 0; }
  .legal-content h2 { font-size: 28px; }
  .plain-table { display: block; overflow-x: auto; }
  .contact-options { grid-template-columns: 1fr; }
  .legal-footer-inner { display: block; }
  .legal-footer-links { justify-content: flex-start; margin-top: 18px; }
}
