:root {
  --ink: #12161c;
  --ink-soft: #1e2630;
  --paper: #f2efe6;
  --paper-2: #e8e2d4;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --coral: #e24a3b;
  --coral-deep: #c73a2c;
  --gold: #c4a35a;
  --muted: #5c6570;
  --line: rgba(18, 22, 28, 0.12);
  --shadow: 0 18px 40px rgba(18, 22, 28, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(
      circle at 12% 18%,
      rgba(20, 184, 166, 0.08),
      transparent 32%
    ),
    radial-gradient(
      circle at 88% 8%,
      rgba(226, 74, 59, 0.07),
      transparent 28%
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px dashed var(--coral);
  color: var(--coral-deep);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  transform: rotate(-3deg);
  background: rgba(255, 255, 255, 0.55);
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(18, 22, 28, 0.18);
  transform: rotate(-4deg);
}
.logo span {
  color: var(--teal);
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 14px rgba(18, 22, 28, 0.1);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  clip-path: polygon(0 0, 92% 0, 100% 14%, 100% 100%, 8% 100%, 0 86%);
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease;
}
.nav-toggle span:nth-child(1) {
  top: 14px;
}
.nav-toggle span:nth-child(2) {
  top: 21px;
}
.nav-toggle span:nth-child(3) {
  top: 28px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 22, 28, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 45;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open {
    overflow: hidden;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    z-index: 55;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 22px 48px rgba(18, 22, 28, 0.22);
    padding: 10px;
    clip-path: polygon(
      0 2%,
      2% 0,
      98% 0,
      100% 3%,
      100% 97%,
      97% 100%,
      2% 100%,
      0 98%
    );
    transform: translateY(-12px) rotate(-0.4deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s;
  }
  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) rotate(-0.4deg);
  }
  .nav-links a {
    display: block;
    padding: 14px 16px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px dashed var(--line);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-links a:hover {
    color: var(--teal);
    background: rgba(15, 118, 110, 0.06);
    text-decoration: none;
  }
}

/* LEGAL PAGE */
.page-hero {
  padding: 56px 0 28px;
}
.page-hero .stamp {
  margin-bottom: 18px;
}
.page-hero h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-hero .lead {
  color: var(--muted);
  max-width: 680px;
  font-size: 16px;
}
.page-hero .updated {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.legal {
  padding: 10px 0 72px;
}
.legal-scrap {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  clip-path: polygon(
    0 1%,
    1% 0,
    99% 0,
    100% 2%,
    100% 98%,
    99% 100%,
    1% 100%,
    0 99%
  );
}
.legal-scrap h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}
.legal-scrap h2:first-child {
  margin-top: 0;
}
.legal-scrap h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.legal-scrap p,
.legal-scrap li {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}
.legal-scrap ul,
.legal-scrap ol {
  padding-left: 1.25rem;
  margin-bottom: 14px;
}
.legal-scrap li {
  margin-bottom: 8px;
}
.legal-scrap strong {
  color: var(--ink);
}
.legal-scrap code {
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 2px 6px;
  border: 1px solid var(--line);
}

.disclaimer {
  background: #fff8e8;
  border: 2px dashed #c4a35a;
  padding: 22px 24px;
  color: #6b4f12;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: var(--shadow);
}
.disclaimer strong {
  color: #4a3608;
}

/* FOOTER (compact on inner pages) */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(20, 184, 166, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(226, 74, 59, 0.1),
      transparent 28%
    );
  pointer-events: none;
}
.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
.foot-grid h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 14px;
}
.foot-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.foot-grid a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}
.foot-grid a:hover {
  color: #fff;
}
.foot-note {
  font-size: 13px;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.58);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}
.foot-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  transform: rotate(-4deg);
}
.foot-brand span {
  color: var(--teal-bright);
}
.copy {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 24px;
}
.age {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  font-size: 13px;
  color: #fff;
}
.age b {
  background: var(--coral);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
