:root {
  --teal: #0f4e5c;
  --teal-dark: #0a3d49;
  --aqua: #a9d6d2;
  --coral: #ef8b6d;
  --ivory: #fbf8f1;
  --paper: #fffdf9;
  --ink: #18353c;
  --muted: #587078;
  --line: #dce8e7;
  --yellow: #ffcb45;
  --shadow: 0 18px 50px rgba(15, 78, 92, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; }
a { color: var(--teal); }
a:hover { color: #0a6979; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
img { max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 1000; transform: translateY(-180%); padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--teal-dark); font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

nav[aria-label="Primary navigation"] { position: sticky; top: 0; z-index: 100; background: rgba(251,248,241,.95); border-bottom: 1px solid rgba(15,78,92,.10); backdrop-filter: blur(16px); }
.nav-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { width: 185px; height: auto; display: block; }
.nav-links { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 700; }
.nav-links a:hover { color: var(--teal); }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; border-radius: 999px; }
.btn-call { border: 1px solid rgba(15,78,92,.28); }
.btn-primary { background: var(--teal); color: #fff !important; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--teal-dark); font-size: 1.55rem; cursor: pointer; }

.legal-hero { padding: 88px 0 54px; position: relative; overflow: hidden; }
.legal-hero::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -190px; top: -170px; background: rgba(169,214,210,.32); z-index: -1; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; font-size: .82rem; color: var(--muted); }
.breadcrumbs a { color: var(--teal); text-decoration: none; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--teal); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--coral); }
.legal-hero h1 { max-width: 880px; margin: 0; font-family: "Lora", Georgia, serif; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.03; font-weight: 500; letter-spacing: -.035em; color: var(--teal-dark); }
.legal-hero h1 span { color: var(--coral); font-style: italic; }
.legal-hero p { max-width: 780px; margin: 24px 0 0; color: var(--muted); font-size: 1.02rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; font-size: .78rem; color: var(--muted); }
.meta-row strong { color: var(--ink); }

.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 54px; align-items: start; padding-bottom: 90px; }
.legal-toc { position: sticky; top: 108px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,249,.86); box-shadow: 0 10px 30px rgba(15,78,92,.05); }
.legal-toc h2 { margin: 0 0 14px; font-size: .86rem; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .08em; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.legal-toc a { color: var(--muted); text-decoration: none; font-size: .79rem; font-weight: 600; }
.legal-toc a:hover { color: var(--teal); }
.legal-content { min-width: 0; }
.legal-callout { margin-bottom: 28px; padding: 24px 26px; border-left: 4px solid var(--aqua); border-radius: 0 18px 18px 0; background: #fff; box-shadow: var(--shadow); }
.legal-callout strong { color: var(--teal-dark); }
.legal-section { scroll-margin-top: 112px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal-section:first-of-type { padding-top: 8px; }
.legal-section h2 { margin: 0 0 14px; color: var(--teal-dark); font-family: "Lora", Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 500; letter-spacing: -.02em; }
.legal-section h3 { margin: 24px 0 8px; color: var(--ink); font-size: 1rem; }
.legal-section p { margin: 0 0 14px; color: #35535b; }
.legal-section ul { margin: 12px 0 18px; padding-left: 22px; color: #35535b; }
.legal-section li + li { margin-top: 8px; }
.legal-section code { padding: 2px 6px; border-radius: 6px; background: #edf5f4; color: var(--teal-dark); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.legal-card { margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.legal-card h3 { margin-top: 0; }
.contact-box { display: grid; gap: 5px; padding: 24px; border-radius: 20px; background: var(--teal-dark); color: #fff; }
.contact-box strong { color: #fff; }
.contact-box a { color: #fff; font-weight: 700; }
.contact-box p { color: #e5f0ef; margin: 0; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 74px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fffdf9; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 8px 4px; }
  .legal-layout { grid-template-columns: 1fr; gap: 26px; }
  .legal-toc { position: static; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-inner { min-height: 72px; }
  .nav-logo img { width: 160px; }
  .legal-hero { padding: 62px 0 38px; }
  .legal-layout { padding-bottom: 56px; }
  .legal-toc { padding: 19px; }
  .legal-callout, .legal-card { padding: 20px; }
}
