@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --pine: #173f35;
  --mist: #dde7dc;
  --air: #f7faf8;
  --fern: #477663;
  --signal: #a8d176;
  --ink: #19211f;
  --spud-sky: #d7eaf0;
  --page: min(1220px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--air);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.studio-status-bar {
  padding: 8px 24px;
  color: var(--mist);
  background: var(--pine);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.site-header,
.legal-main,
.site-footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-lockup {
  display: block;
  flex: 0 0 auto;
  width: 226px;
  aspect-ratio: 353.12 / 72;
  background: var(--pine);
  -webkit-mask: url("../brand-kit/assets/corduroying-lockup-horizontal.svg") center / contain no-repeat;
  mask: url("../brand-kit/assets/corduroying-lockup-horizontal.svg") center / contain no-repeat;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 2px;
  color: var(--fern);
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 2px;
  bottom: 3px;
  left: 2px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 150ms ease, transform 150ms ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.legal-main { padding: 18px 0 76px; }

.legal-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 32px;
  background: var(--spud-sky);
  isolation: isolate;
}

.legal-hero::before,
.legal-hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
}

.legal-hero::before {
  right: -2%;
  bottom: -65%;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  background: rgba(168, 209, 118, 0.62);
}

.legal-hero::after {
  right: 24%;
  bottom: -80%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  background: rgba(71, 118, 99, 0.24);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--fern);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--pine);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.legal-meta {
  margin: 28px 0 0;
  color: rgba(25, 33, 31, 0.66);
  font-size: 13px;
}

.legal-meta a,
.legal-content a,
.legal-footer-links a {
  color: var(--fern);
  text-underline-offset: 3px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) clamp(12px, 4vw, 54px) 8px;
}

.legal-content > p:first-child {
  color: var(--pine);
  font-size: clamp(20px, 2.5vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.42;
}

.legal-content h2 {
  margin: 48px 0 12px;
  color: var(--pine);
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.legal-content p {
  max-width: 730px;
  margin: 0 0 18px;
  color: rgba(25, 33, 31, 0.8);
  line-height: 1.68;
}

.legal-content ul {
  max-width: 730px;
  margin: 0 0 18px;
  padding-left: 1.3em;
  color: rgba(25, 33, 31, 0.8);
}

.legal-content li {
  margin: 0 0 9px;
  padding-left: 0.35em;
}

.legal-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 63, 53, 0.2);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 42px;
  padding: 48px 0 58px;
  border-top: 1px solid rgba(23, 63, 53, 0.2);
  align-items: end;
}

.footer-mark {
  width: 60px;
  aspect-ratio: 1;
  background: var(--pine);
  -webkit-mask: url("../brand-kit/assets/corduroying-symbol.svg") center / contain no-repeat;
  mask: url("../brand-kit/assets/corduroying-symbol.svg") center / contain no-repeat;
}

.footer-content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.footer-legal {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.apple-credit {
  max-width: 510px;
  margin: 0;
  color: var(--fern);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

@media (max-width: 680px) {
  :root { --page: min(100% - 28px, 620px); }

  .studio-status-bar { padding-inline: 14px; }
  .site-header { min-height: 78px; gap: 18px; }
  .brand-lockup { width: 160px; }
  .site-nav { gap: 12px; font-size: 11px; }
  .legal-main { padding-top: 10px; padding-bottom: 54px; }

  .legal-hero {
    min-height: 280px;
    padding: 30px;
    border-radius: 22px;
  }

  .legal-hero h1 { margin-top: 18px; font-size: clamp(48px, 15vw, 78px); }
  .legal-meta { margin-top: 22px; }
  .legal-content { padding: 42px 2px 0; }
  .legal-content h2 { margin-top: 40px; }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-content {
    align-items: start;
    flex-direction: column;
  }

  .footer-legal { justify-items: start; }
  .apple-credit { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav a::after { transition: none; }
}
