:root {
  --ink: #12262a;
  --ink-soft: #3d555a;
  --muted: #6b7f84;
  --brand: #0b5f6b;
  --brand-deep: #084851;
  --brand-soft: #d7eef1;
  --sand: #f4f0e8;
  --sand-deep: #e8e1d4;
  --paper: #fcfbf8;
  --line: rgba(18, 38, 42, 0.1);
  --shadow: 0 18px 50px rgba(8, 72, 81, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --shell: min(1080px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(11, 95, 107, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(212, 168, 75, 0.14), transparent 55%),
    linear-gradient(180deg, #eef6f6 0%, var(--paper) 42%, var(--sand) 100%);
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(252, 251, 248, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

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

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(145deg, #127a88 0%, var(--brand-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--brand);
}

/* ── Home ─────────────────────────────────────────────── */

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(135deg, rgba(8, 72, 81, 0.94), rgba(11, 95, 107, 0.88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #f7fbfb;
  box-shadow: var(--shadow);
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 10ch;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(247, 251, 251, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #f4f0e8;
  color: var(--brand-deep);
}

.btn-primary:hover {
  background: #fff;
  color: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: #f7fbfb;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  color: #fff;
}

.home-section {
  padding: 0 0 4.5rem;
}

.home-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.home-section p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* ── Legal document pages ─────────────────────────────── */

.legal-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.legal-hero .eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.legal-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.toc {
  position: sticky;
  top: 5.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(8, 72, 81, 0.06);
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.legal-card {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-card section {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.legal-card section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.legal-card h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
}

.legal-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.legal-card li + li {
  margin-top: 0.35rem;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.95rem;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  padding: 2.5rem 0 2rem;
  display: grid;
  gap: 1.25rem;
}

.footer-brand p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-copy {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 1.5rem, 1080px);
  }

  .site-nav {
    gap: 0.9rem;
  }

  .toc {
    position: static;
  }
}
