:root {
  --legal-navy: #071a2c;
  --legal-navy-deep: #041321;
  --legal-paper: #ead9cb;
  --legal-cream: #f0dfcf;
  --legal-pink: #ee4d78;
  --legal-ink: #132438;
  --legal-muted-dark: rgba(240, 223, 207, .7);
  --legal-muted-light: rgba(7, 26, 44, .69);
  --legal-line-dark: rgba(240, 223, 207, .18);
  --legal-line-light: rgba(7, 26, 44, .16);
  --legal-ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--legal-navy);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--legal-ink);
  font-family: "Archivo", "Aptos", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--legal-pink);
  outline-offset: 5px;
}

.legal-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  background: var(--legal-cream);
  color: var(--legal-navy);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .25s var(--legal-ease);
}

.legal-skip:focus {
  transform: none;
}

.legal-eyebrow {
  margin: 0;
  color: var(--legal-pink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.legal-header {
  position: relative;
  z-index: 20;
  height: 96px;
  padding: 0 clamp(32px, 4vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--legal-line-light);
}

.legal-header__brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.legal-header__brand img {
  width: clamp(138px, 9.2vw, 154px);
  height: auto;
}

.legal-header nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3vw, 52px);
}

.legal-header nav a {
  position: relative;
  min-height: 44px;
  display: grid;
  align-items: center;
  color: var(--legal-navy);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--legal-pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--legal-ease);
}

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

.privacy-page {
  background: var(--legal-paper);
}

.privacy-main {
  position: relative;
}

.privacy-intro {
  padding: clamp(52px, 7vh, 72px) clamp(38px, 5vw, 84px) 58px;
  display: grid;
  grid-template-columns: minmax(520px, 1.07fr) minmax(420px, .93fr);
  gap: clamp(68px, 9vw, 152px);
  border-bottom: 1px solid var(--legal-line-light);
}

.privacy-title {
  margin: 17px 0 20px;
  max-width: 770px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(76px, 6.2vw, 104px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .84;
}

.privacy-lead {
  margin: 0;
  max-width: 690px;
  color: var(--legal-muted-light);
  font-size: 15px;
  line-height: 1.65;
}

.privacy-status {
  align-self: end;
  position: relative;
  padding: 26px 30px 28px;
  border-top: 1px solid var(--legal-pink);
  border-bottom: 1px solid var(--legal-line-light);
}

.privacy-status::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--legal-pink);
  transform: rotate(45deg);
}

.privacy-status__label {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--legal-pink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.privacy-status__label span {
  color: rgba(7, 26, 44, .42);
}

.privacy-status h2 {
  margin: 0 0 13px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
}

.privacy-status p {
  margin: 0;
  color: var(--legal-muted-light);
  font-size: 12.5px;
  line-height: 1.62;
}

.privacy-document {
  padding: 0 clamp(38px, 5vw, 84px) 112px;
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 850px);
  gap: clamp(76px, 10vw, 168px);
}

.privacy-toc {
  padding-top: 43px;
  border-right: 1px solid var(--legal-line-light);
}

.privacy-toc h2 {
  margin: 0 0 20px;
  color: rgba(7, 26, 44, .48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.privacy-toc ol {
  margin: 0;
  padding: 0 34px 0 0;
  list-style: none;
}

.privacy-toc a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(7, 26, 44, .08);
  color: rgba(7, 26, 44, .72);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 16px;
  text-decoration: none;
  transition: color .25s ease, padding .3s var(--legal-ease);
}

.privacy-toc a:hover,
.privacy-toc a:focus-visible {
  padding-left: 7px;
  color: var(--legal-pink);
}

.privacy-content {
  padding-top: 39px;
}

.policy-section {
  padding: 0 0 28px;
  scroll-margin-top: 24px;
  border-bottom: 1px solid var(--legal-line-light);
}

.policy-section + .policy-section {
  padding-top: 27px;
}

.policy-section h2 {
  margin: 0 0 18px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.policy-section h2 span {
  margin-right: 13px;
  color: var(--legal-pink);
  font-size: 18px;
}

.policy-section p {
  margin: 0 0 10px;
  color: var(--legal-muted-light);
  font-size: 13px;
  line-height: 1.6;
}

.policy-section a {
  text-decoration-color: var(--legal-pink);
  text-underline-offset: 3px;
}

.policy-section .fill-row {
  margin-bottom: 0;
  padding: 9px 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-top: 1px solid rgba(7, 26, 44, .08);
  color: var(--legal-navy);
}

.fill-row strong {
  color: var(--legal-pink);
  font-size: 11px;
  letter-spacing: .06em;
}

.error-page {
  min-height: 100svh;
  overflow: hidden;
  background: var(--legal-navy-deep);
  color: var(--legal-cream);
}

.error-page::after {
  opacity: .18;
  mix-blend-mode: screen;
}

.error-page .legal-header {
  position: absolute;
  inset: 0 0 auto;
  border-color: var(--legal-line-dark);
}

.error-page .legal-header nav a {
  color: var(--legal-cream);
}

.error-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 64% center;
  opacity: .31;
  filter: saturate(.72) contrast(1.08);
}

.error-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 19, 33, .99) 0%, rgba(4, 19, 33, .94) 36%, rgba(4, 19, 33, .44) 68%, rgba(4, 19, 33, .77) 100%),
    linear-gradient(0deg, rgba(4, 19, 33, .92) 0%, transparent 38%);
}

.error-main {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  padding: 148px clamp(48px, 6vw, 100px) 72px;
  display: grid;
  grid-template-columns: minmax(620px, .95fr) 1.05fr;
  align-items: center;
}

.error-copy {
  position: relative;
  max-width: 780px;
}

.error-copy::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -28px;
  width: 1px;
  height: 126px;
  background: linear-gradient(var(--legal-pink), #b8795d, transparent);
}

.error-title {
  margin: 22px 0 25px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(78px, 7vw, 116px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .82;
}

.error-title span {
  color: var(--legal-pink);
}

.error-lead {
  margin: 0;
  max-width: 630px;
  color: var(--legal-muted-dark);
  font-size: 15px;
  line-height: 1.65;
}

.error-actions {
  margin-top: 38px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.error-actions a {
  min-height: 58px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 223, 207, .38);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .35s var(--legal-ease), background .3s ease, color .3s ease, border-color .3s ease;
}

.error-actions a:hover,
.error-actions a:focus-visible {
  transform: translateY(-4px);
}

.error-actions .primary {
  border-color: var(--legal-cream);
  background: var(--legal-cream);
  color: var(--legal-navy);
}

.error-actions .secondary:hover,
.error-actions .secondary:focus-visible {
  border-color: var(--legal-cream);
  background: rgba(240, 223, 207, .08);
}

.error-actions .diagnosis {
  border-color: var(--legal-pink);
  color: #fff;
  background: rgba(238, 77, 120, .12);
}

.error-actions .diagnosis:hover,
.error-actions .diagnosis:focus-visible {
  background: var(--legal-pink);
}

.error-number {
  position: absolute;
  z-index: 2;
  right: clamp(42px, 5vw, 84px);
  bottom: 32px;
  margin: 0;
  color: transparent;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: min(34vw, 520px);
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: .72;
  -webkit-text-stroke: 1px rgba(240, 223, 207, .15);
  user-select: none;
}

.error-meta {
  position: absolute;
  z-index: 4;
  right: clamp(48px, 6vw, 100px);
  bottom: 32px;
  display: flex;
  gap: 22px;
  color: rgba(240, 223, 207, .52);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

@media (max-width: 1140px) {
  .legal-header {
    height: 76px;
    padding: 0 22px;
  }

  .legal-header nav {
    gap: 18px;
  }

  .legal-header nav a {
    font-size: 10px;
  }

  .privacy-intro {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .privacy-document {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .privacy-toc {
    border-right: 0;
  }

  .error-main {
    grid-template-columns: 1fr;
  }

  .error-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .legal-header {
    height: 72px;
    padding: 0 20px;
  }

  .legal-header__brand img {
    width: 132px;
  }

  .legal-header nav a:nth-child(2) {
    display: none;
  }

  .privacy-intro {
    padding: 38px 22px 34px;
    gap: 28px;
  }

  .privacy-title {
    margin: 14px 0 18px;
    font-size: clamp(58px, 17vw, 72px);
  }

  .privacy-lead {
    font-size: 14px;
    line-height: 1.58;
  }

  .privacy-status {
    padding: 21px 0 23px;
  }

  .privacy-status__label {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .privacy-status h2 {
    max-width: 320px;
    font-size: 27px;
  }

  .privacy-document {
    padding: 0 22px 70px;
  }

  .privacy-toc {
    padding-top: 30px;
  }

  .privacy-toc ol {
    padding-right: 0;
  }

  .privacy-toc a {
    min-height: 44px;
  }

  .privacy-content {
    padding-top: 34px;
  }

  .policy-section h2 {
    font-size: 25px;
    line-height: 1.05;
  }

  .policy-section .fill-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .error-page {
    overflow-y: auto;
  }

  .error-page .legal-header nav a {
    display: grid;
  }

  .error-page .legal-header nav a:nth-child(2) {
    display: none;
  }

  .error-art {
    position: fixed;
    object-position: 70% center;
  }

  .error-veil {
    position: fixed;
    background:
      linear-gradient(180deg, rgba(4, 19, 33, .92) 0%, rgba(4, 19, 33, .84) 34%, rgba(4, 19, 33, .97) 100%),
      linear-gradient(90deg, rgba(4, 19, 33, .94), rgba(4, 19, 33, .52));
  }

  .error-main {
    min-height: 100svh;
    padding: 118px 22px 104px;
    align-items: start;
  }

  .error-copy::before {
    left: -10px;
    height: 92px;
  }

  .error-title {
    margin: 19px 0 22px;
    font-size: clamp(64px, 20vw, 82px);
  }

  .error-lead {
    font-size: 14px;
  }

  .error-actions {
    margin-top: 28px;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .error-actions a {
    width: 100%;
    min-height: 52px;
  }

  .error-number {
    position: fixed;
    right: 14px;
    bottom: 21px;
    font-size: min(63vw, 260px);
  }

  .error-meta {
    position: relative;
    z-index: 4;
    right: auto;
    bottom: auto;
    margin: -74px 22px 0;
    padding-bottom: 22px;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
