/* ALMA INFANTIA privacy policy page */

:root {
  --canvas: #f0eee8;
  --ink: #151517;
  --grey: #5e5e61;
  --blue: #2fa8e1;
  --red: #de2b1c;
  --wine: #a6135c;
  --arch: #2246c7;
  --panel: #e9e6de;
  --cream: #f2efe7;
  --gilt-band: #b3984d;
  --magenta-band: #98265b;
}

html.night {
  --canvas: #242220;
  --ink: #f1ebde;
  --grey: #b3aca1;
  --panel: #2c2926;
  --cream: #f2efe7;
  --gilt-band: #8a7640;
  --magenta-band: #7a1f4a;
}

html,
body {
  transition: background 0.25s ease, color 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Geist", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── NAV — stacked wordmark, match designed privacy ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
}

.wordmark {
  position: relative;
  display: inline-block;
  font-weight: 900;
  font-size: 13.5px;
  line-height: 0.94;
  letter-spacing: -0.1px;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-weight: 600;
  font-size: 13px;
  color: var(--grey);
  transition: color 0.15s ease;
}

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

.nav-chip {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border: none;
}

.nav-links a.nav-chip,
.nav-links a.nav-chip:hover {
  color: #fff;
}

.mode-btn {
  width: 34px;
  height: 34px;
  border: 3px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-label {
  display: inline-flex;
  align-items: center;
}

.lang-select {
  height: 34px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0 10px;
  cursor: pointer;
}

.lang-select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

[data-glitch].glitching {
  animation: alma-glitch 450ms steps(2, jump-none) both;
  text-shadow: -2px 0 var(--blue), 2px 0 var(--wine);
}

[data-glitch].glitching.glitch-stutter {
  animation-duration: 220ms;
}

@keyframes alma-glitch {
  0% {
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
  15% {
    transform: translate(-3px, 1px);
    clip-path: inset(12% 0 58% 0);
  }
  30% {
    transform: translate(3px, -1px);
    clip-path: inset(48% 0 18% 0);
  }
  45% {
    transform: translate(-2px, 0);
    clip-path: inset(0 0 0 0);
  }
  60% {
    transform: translate(2px, 1px);
    clip-path: inset(28% 0 42% 0);
  }
  75% {
    transform: translate(-1px, -1px);
  }
  100% {
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-glitch].glitching {
    animation: none;
    text-shadow: none;
  }
}

/* ── HERO ── */
.p-hero {
  padding: 48px 28px 44px;
}

.p-hero .eyebrow {
  color: var(--wine);
}

.p-hero h1 {
  font-weight: 900;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 14px;
}

.p-hero .p-date {
  font-weight: 500;
  font-size: 14px;
  color: var(--grey);
  margin-top: 14px;
}

.p-hero .p-lede {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
  margin-top: 18px;
}

.p-hero .p-lede a {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

/* ── SHORT VERSION BOX ── */
.short-box {
  border: 3px solid var(--ink);
  padding: 32px 34px;
  margin-bottom: 56px;
}

.short-box .eyebrow {
  color: var(--grey);
}

.short-box h2 {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-top: 8px;
  margin-bottom: 18px;
}

.short-box ul {
  list-style: none;
}

.short-box li {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.short-box li:last-child {
  border-bottom: none;
}

.short-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.short-box li b {
  font-weight: 700;
}

/* ── LAYOUT: TOC + article ── */
.p-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding-bottom: 100px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 28px;
}

.toc .eyebrow {
  color: var(--grey);
  margin-bottom: 14px;
  display: block;
}

.toc a {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--grey);
  padding: 7px 0 7px 14px;
  border-left: 2px solid color-mix(in srgb, var(--ink) 15%, transparent);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc a:hover,
.toc a.active {
  color: var(--ink);
  border-left-color: var(--ink);
  font-weight: 700;
}

.privacy-article section {
  margin-bottom: 44px;
  scroll-margin-top: 28px;
}

.privacy-article h2 {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.privacy-article p {
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 720px;
}

.privacy-article b,
.short-box b,
.color-band b,
.p-table b {
  font-weight: 700;
}

.privacy-article ul {
  list-style: none;
  margin-bottom: 14px;
}

.privacy-article li {
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.6;
  padding: 6px 0 6px 20px;
  position: relative;
  max-width: 720px;
}

.privacy-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.privacy-article a {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

/* ── TABLE ── */
.p-table-wrap {
  border: 3px solid var(--ink);
  overflow-x: auto;
  margin: 20px 0 30px;
  -webkit-overflow-scrolling: touch;
}

table.p-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.p-table thead th {
  background: var(--ink);
  color: var(--canvas);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 18px;
}

.p-table td {
  padding: 16px 18px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  border-top: 1.5px solid color-mix(in srgb, var(--ink) 15%, transparent);
  vertical-align: top;
}

.p-table tbody tr:nth-child(odd) td {
  background: var(--panel);
}

.p-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.p-table td.notes,
.p-table .notes {
  color: var(--grey);
  font-weight: 400;
}

/* ── CONTACT STRIP ── */
.contact-strip {
  border: 3px solid var(--ink);
  padding: 34px;
  text-align: left;
  margin-top: 20px;
}

.contact-strip h3 {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.contact-strip p {
  font-weight: 300;
  font-size: 15px;
  color: var(--grey);
  margin-top: 8px;
  margin-bottom: 14px;
  max-width: none;
}

.contact-strip a {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}

/* ── COLOR BANDS ── */
.color-band {
  margin: 56px 0;
  padding: 44px 40px;
}

.color-band.gilt {
  background: var(--gilt-band);
  color: var(--ink);
}

.color-band.magenta {
  background: var(--magenta-band);
  color: var(--cream);
}

.color-band .cb-eyebrow {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
}

.color-band h3 {
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin-top: 10px;
  max-width: 520px;
}

.color-band p {
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 520px;
  opacity: 0.95;
}

.color-band.magenta a {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* ── FOOTER ── */
.privacy-footer {
  border-top: 3px solid var(--ink);
  padding: 44px 0 52px;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-weight: 900;
  font-size: 13.5px;
  line-height: 0.94;
  letter-spacing: -0.1px;
  display: inline-block;
}

.privacy-footer .wordmark {
  font-size: 13.5px;
}

.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.foot-links a {
  font-weight: 500;
  font-size: 13px;
}

.foot-tag {
  font-weight: 300;
  font-size: 13px;
  color: var(--grey);
}

@media (max-width: 900px) {
  .p-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    border-bottom: 3px solid var(--ink);
    padding-bottom: 24px;
    margin-bottom: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .toc .eyebrow {
    width: 100%;
  }

  .toc a {
    border-left: none;
    padding: 4px 0;
  }

  .p-table td:first-child {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .site-nav {
    padding-top: 20px;
  }

  .site-nav .wordmark,
  .privacy-footer .wordmark {
    font-size: 12.5px;
  }

  .lang-select {
    width: 34px;
    min-width: 34px;
    padding: 0;
    text-align: center;
    text-align-last: center;
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .short-box,
  .contact-strip,
  .color-band {
    padding-left: 22px;
    padding-right: 22px;
  }

  .p-hero {
    padding-left: 28px;
    padding-right: 28px;
  }
}
