:root {
  --ink: #142a2b;
  --teal: #00a995;
  --teal-deep: #007c71;
  --mint: #d6f3e9;
  --paper: #faf8f2;
  --sand: #f2ede0;
  --sun: #f7d88d;
  --coral: #e8846e;
  --muted: #587273;
  --line: rgba(20, 42, 43, 0.14);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --serif: "Newsreader", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-shell { overflow: hidden; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

h2 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4vw, 57px); font-weight: 600; line-height: .98; }

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  position: relative;
  z-index: 5;
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 172px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 700; }
.nav-links a { opacity: 0.75; transition: opacity 180ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links .button { margin-left: 4px; }
.nav-links .lang-switch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.lang-switch :is(i, svg) { width: 14px; height: 14px; }
.menu-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); }
.menu-toggle :is(i, svg) { width: 20px; height: 20px; }

.button {
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  font-size: 13px;
  transition: transform 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--teal-deep); }
.button--light { color: var(--ink); background: #fff; }
.button--light:hover { background: var(--sun); }
.nav-links .button { opacity: 1; }

/* Footer */
.site-footer { background: var(--ink); color: #c9dedb; font-size: 13px; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding: 72px 0 56px; }
.footer-brand img { display: block; width: 150px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 290px; margin: 18px 0 20px; line-height: 1.65; color: #9fbcb9; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.footer-email :is(i, svg) { width: 16px; height: 16px; color: #80e5d4; }
.footer-email:hover { color: #80e5d4; }
.footer-col h3 { margin: 4px 0 16px; color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-col a { transition: color 180ms ease; }
.footer-col a:hover { color: #80e5d4; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 30px; border-top: 1px solid rgba(255,255,255,.14); font-size: 11px; color: #8eaaa7; }

/* Inner pages */
.page-header { position: relative; background: var(--mint); isolation: isolate; }
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 42, 43, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.42;
  mask-image: linear-gradient(to right, #000 0%, transparent 61%);
  z-index: -1;
}
.page-hero { padding: 58px 0 84px; }
.page-hero h1 { max-width: 760px; margin: 0 0 20px; font-family: var(--serif); font-size: clamp(46px, 5.6vw, 72px); font-weight: 600; line-height: .95; }
.page-hero p { max-width: 560px; margin: 0; font-size: 17px; line-height: 1.65; color: #355758; }
.page-meta { display: inline-block; margin-top: 22px; color: var(--teal-deep); font-family: var(--mono); font-size: 12px; }

/* Legal documents */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; padding: 86px 0 112px; }
.legal-toc { position: sticky; top: 28px; align-self: start; }
.legal-toc h2 { margin-bottom: 14px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); }
.legal-toc ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: toc; font-size: 13px; font-weight: 700; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 8px; opacity: .7; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--teal); font-family: var(--mono); font-size: 11px; font-weight: 400; padding-top: 2px; }
.legal-toc a:hover { opacity: 1; }
.prose { max-width: 720px; color: #3f5d5e; font-size: 15px; line-height: 1.75; }
.prose section { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { margin-bottom: 16px; color: var(--ink); font-size: 30px; line-height: 1.1; }
.prose h3 { margin: 22px 0 6px; color: var(--ink); font-size: 15px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--teal-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.callout { display: flex; gap: 14px; margin: 0 0 18px; padding: 18px 20px; background: #fff3d6; border-left: 3px solid var(--sun); color: var(--ink); }
.callout :is(i, svg) { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: #a26b00; }
.callout p { margin: 0; }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(20, 42, 43, 0.14);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav-links .lang-switch { display: flex; }
  .nav-links .button { margin: 16px 0 0; padding: 14px 18px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 80px; }
  .legal-toc { position: static; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1160px); }
  .nav { min-height: 72px; }
  .brand img { width: 142px; }
  .page-hero { padding: 36px 0 60px; }
  .page-hero p { font-size: 15px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 20px; padding: 56px 0 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .prose h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
