/*
 * Fallback fonts + small animation helpers.
 * The reference site uses licensed fonts (Exposure VAR, ABC Oracle, ABC Favorit
 * Mono) served from /fonts/, which are not bundled here. We map them to close
 * free alternatives loaded from Google Fonts so the layout stays faithful.
 * Loaded AFTER site.css so these rules win the cascade.
 */

html,
body,
button,
input,
select,
textarea,
.font-sans,
.font-serif,
.font-variable,
.font-mono,
.font-triple,
.caption,
.h1,
.h2,
.h3,
.h4,
.h2--exposure {
  font-family: "Chivo", sans-serif;
  font-optical-sizing: auto;
}

/* Horizontal marquee used in the privacy section. */
@keyframes site-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.site-marquee-track {
  display: flex;
  width: max-content;
  animation: site-marquee 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .site-marquee-track {
    animation: none;
  }
}

/* Missing decorative background assets fall back to subtle tints. */
.svg-dashed-border-pattern {
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 1.2rem;
}

/* Compatibility for Tailwind utility classes missing from the static site.css. */
.border-dashed {
  border-style: dashed;
}

/* Legal page markdown — uses site rem scale (1rem = 10px at 62.5% root) */
.legal-content {
  max-width: 68ch;
  margin-top: 1.8rem;
  font-size: 2rem;
  line-height: 3.2rem;
  color: rgba(0, 0, 0, 0.72);
  text-wrap: pretty;
}

@media (min-width: 800px) {
  .legal-content {
    font-size: 2.2rem;
    line-height: 3.4rem;
  }
}

.legal-content > p {
  margin-top: 1.2rem;
}

.legal-content > p:first-child {
  margin-top: 0;
}

.legal-content a {
  color: rgb(59, 98, 227);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease;
}

.legal-content a:hover {
  color: rgb(0, 0, 0);
}

.legal-content strong {
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}

.legal-content ul,
.legal-content ol {
  margin-top: 1rem;
  padding-left: 2rem;
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.legal-content li::marker {
  color: rgba(0, 0, 0, 0.28);
}

.legal-content ol.legal-data-list {
  display: grid;
  gap: 0.5rem 2.4rem;
  padding-left: 0;
  list-style: none;
  counter-reset: legal-data;
}

@media (min-width: 800px) {
  .legal-content ol.legal-data-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.legal-content ol.legal-data-list > li {
  display: flex;
  gap: 0.8rem;
  counter-increment: legal-data;
}

.legal-content ol.legal-data-list > li::before {
  content: counter(legal-data) ".";
  flex-shrink: 0;
  min-width: 1.6rem;
  color: rgba(0, 0, 0, 0.28);
}

.legal-content ol.legal-data-list > li + li {
  margin-top: 0;
}

.legal-field {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-content > .legal-field:first-child,
.legal-content > p:first-child + .legal-field {
  margin-top: 1.6rem;
  padding-top: 0;
  border-top: 0;
}

.legal-field-label {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.8rem;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}

.legal-field-body > * + * {
  margin-top: 1rem;
}

.legal-field-body > ul,
.legal-field-body > ol {
  margin-top: 0.8rem;
}

.legal-contact-card {
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
  padding: 2.4rem 2.8rem;
  border-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(250, 250, 248, 0.9) 100%
  );
}

.legal-contact-card > p:first-child {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 650;
  line-height: 3rem;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.9);
}

.legal-contact-card > p + p {
  margin-top: 0.4rem;
  color: rgba(0, 0, 0, 0.65);
}

.legal-page-layout {
  grid-template-columns: minmax(0, 1fr);
}

.legal-page-title {
  max-width: 100%;
  font-size: clamp(3.2rem, 3.2vw, 4.2rem);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

@media (min-width: 1100px) {
  .legal-page-title {
    white-space: nowrap;
  }
}

@media (min-width: 1100px) {
  .legal-page-layout {
    grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
    align-items: start;
  }

  .legal-page-layout > aside {
    position: sticky;
    top: 12rem;
  }
}

@media (min-width: 1320px) {
  .legal-page-layout {
    grid-template-columns: minmax(400px, 440px) minmax(0, 1fr) auto;
  }
}

.legal-scroll-toc {
  position: sticky;
  top: 12rem;
  padding-top: 0.4rem;
  contain: layout paint;
}

@media (max-width: 1319px) {
  .legal-scroll-toc {
    display: none;
  }
}

.legal-scroll-toc button span {
  width: 2.4rem;
  transform: scaleX(0.6667);
  transform-origin: left center;
  background-color: rgba(0, 0, 0, 0.32);
  transition: background-color 0.15s ease;
}

.legal-scroll-toc button:hover span {
  background-color: rgba(0, 0, 0, 0.48);
}

.legal-scroll-toc button[aria-current="true"] span {
  transform: scaleX(1);
  background-color: rgba(0, 0, 0, 0.92);
}

.legal-page-layout section:not(:first-child) {
  padding-top: 5.6rem;
}

.legal-page-layout section {
  padding-bottom: 3.2rem;
}

.legal-page-layout section:last-child {
  padding-bottom: 0;
}
