@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --page: #fdfbf7;
  --surface: #fffefd;
  --surface-muted: #f7ecea;
  --text: #242126;
  --text-muted: #69646a;
  --line: rgb(72 58 44 / 0.16);
  --rose: #8e4052;
  --gold: #d4af37;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid #f996b8;
  border-radius: 8px;
  background: #fff;
  color: #70183d;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  border-bottom: 1px solid rgb(255 255 255 / 0.38);
  background: rgb(253 251 247 / 0.86);
  box-shadow: 0 12px 38px rgb(45 32 28 / 0.08);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.legal-nav {
  display: flex;
  width: min(calc(100% - 32px), 1216px);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0;
  font-size: 20px;
  font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.legal-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgb(100 63 19 / 0.2));
}

.legal-brand > span {
  margin-left: -8px;
}

.legal-brand strong {
  color: var(--rose);
}

.legal-brand span span {
  color: var(--text-muted);
  font-weight: 400;
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.back-link {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 220ms ease, color 220ms ease;
}

.back-link:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.legal-call {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  padding: 0 21px;
  background: #8e4052;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 10px 24px rgb(92 45 55 / 0.2);
  transition: transform 280ms var(--ease-out), background-color 220ms ease;
}

.legal-call:hover {
  background: #753443;
  transform: translateY(-2px);
}

.legal-page {
  width: min(calc(100% - 32px), 1216px);
  min-height: calc(100dvh - 250px);
  margin: 0 auto;
  padding: 96px 0 120px;
}

.legal-intro {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.legal-kicker {
  grid-column: 1 / -1;
  margin-bottom: -30px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.legal-intro h1 {
  margin-bottom: 0;
  font-size: 64px;
  font-weight: 600;
}

.legal-intro > p:last-child {
  max-width: 52ch;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 18px;
}

.legal-document {
  width: min(100%, 880px);
  margin: 64px 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.9) 0%, rgb(247 236 234 / 0.88) 100%);
  box-shadow: 0 28px 70px rgb(20 20 23 / 0.1), inset 0 1px 0 rgb(255 255 255 / 0.86);
}

.legal-document section {
  padding: 34px 40px;
  border-bottom: 1px solid var(--line);
}

.legal-document section:last-child {
  border-bottom: 0;
}

.legal-document h2 {
  margin-bottom: 14px;
  font-size: 23px;
  font-weight: 600;
}

.legal-document p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.legal-document strong {
  color: var(--text);
}

.legal-document a {
  color: var(--rose);
  font-weight: 600;
}

.legal-document a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-document code {
  color: #8e4052;
  font-family: inherit;
  font-weight: 600;
}

.legal-footer {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px max(16px, calc((100% - 1216px) / 2));
  border-top: 1px solid rgb(255 255 255 / 0.08);
  background: #121316;
  color: #b6b1b2;
  font-size: 13px;
}

.legal-footer p {
  margin-bottom: 0;
}

.legal-footer nav {
  display: flex;
  gap: 24px;
}

.legal-footer a:hover,
.legal-footer a[aria-current="page"] {
  color: #e0c782;
}

@keyframes legal-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .legal-intro {
    animation: legal-enter 760ms var(--ease-out) both;
  }

  .legal-document {
    animation: legal-enter 760ms 160ms var(--ease-out) both;
  }
}

@media (max-width: 700px) {
  .legal-brand {
    font-size: 18px;
  }

  .legal-brand span span {
    display: none;
  }

  .back-link {
    display: none;
  }

  .legal-call {
    min-height: 42px;
    padding: 0 16px;
  }

  .legal-page {
    padding: 72px 0 88px;
  }

  .legal-intro {
    display: block;
    padding-bottom: 32px;
  }

  .legal-kicker {
    margin-bottom: 18px;
  }

  .legal-intro h1 {
    margin-bottom: 20px;
    font-size: 44px;
  }

  .legal-document {
    margin-top: 40px;
  }

  .legal-document section {
    padding: 28px 24px;
  }

  .legal-footer {
    min-height: 148px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .legal-nav {
    width: min(calc(100% - 24px), 1216px);
  }

  .legal-brand {
    gap: 0;
    font-size: 16px;
  }

  .legal-brand img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .legal-call {
    padding: 0 13px;
    font-size: 13px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111114;
    --surface: #17171b;
    --surface-muted: #2a2225;
    --text: #f2f2f4;
    --text-muted: #aaa8af;
    --line: rgb(255 255 255 / 0.12);
  }

  .skip-link {
    border-color: #9f184f;
    background: #1a191e;
    color: #ffc6d8;
  }

  .legal-header {
    border-bottom-color: rgb(255 255 255 / 0.1);
    background: rgb(18 18 21 / 0.86);
    box-shadow: 0 12px 40px rgb(0 0 0 / 0.24);
  }

  .legal-document {
    background: linear-gradient(135deg, #222228 0%, #151519 100%);
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.12);
  }

  .legal-document code {
    color: #e0c782;
  }
}

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

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

@media (prefers-reduced-transparency: reduce) {
  .legal-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
