@import url("https://use.typekit.net/edv2nhw.css");
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --legal-sand: #f3ede3;
  --legal-sand-soft: #f8f4ee;
  --legal-sand-deep: #e4d7c4;
  --legal-accent: #c1b093;
  --legal-text: #1f1c18;
  --legal-text-soft: #6d645b;
  --legal-text-dim: rgba(31, 28, 24, 0.50);
  --legal-line: rgba(31, 28, 24, 0.12);
  --legal-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color: var(--legal-text);
  background: var(--legal-sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.legal-page {
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8f4ee 0%, #f3ede3 48%, #f6f1e8 100%);
}

.legal-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-hero {
  position: relative;
  padding: 168px 0 86px;
  overflow: hidden;
  border-bottom: 1px solid var(--legal-line);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(193, 176, 147, 0.24), transparent 35%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.legal-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--legal-text-dim);
}

.legal-hero h1 {
  margin: 0;
  font-family: "regulator-nova", serif;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 400;
  text-wrap: balance;
}

.legal-hero p {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--legal-text-soft);
  font-size: 1.03rem;
  line-height: 1.9;
}

.legal-content {
  padding: 82px 0 120px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 110px;
}

.legal-sidebar-label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--legal-text-dim);
}

.legal-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--legal-line);
}

.legal-nav a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid var(--legal-line);
  color: var(--legal-text-soft);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.5;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.legal-nav a span {
  color: var(--legal-text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.legal-nav a:hover {
  color: var(--legal-text);
  padding-left: 4px;
}

.legal-document {
  min-width: 0;
}

.legal-company {
  margin-bottom: 30px;
  padding: 24px 26px;
  border: 1px solid var(--legal-line);
  background: rgba(255, 255, 255, 0.35);
}

.legal-company strong {
  display: block;
  margin-bottom: 8px;
  font-family: "regulator-nova", serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.1;
}

.legal-company p {
  margin: 0;
  color: var(--legal-text-soft);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-section {
  scroll-margin-top: 120px;
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--legal-line);
}

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

.legal-section-number {
  display: block;
  margin-bottom: 10px;
  color: var(--legal-text-dim);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-section h2 {
  margin: 0 0 18px;
  font-family: "regulator-nova", serif;
  font-size: clamp(2rem, 3.3vw, 3.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.legal-section h3 {
  margin: 26px 0 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-section p {
  margin: 0 0 14px;
  color: var(--legal-text-soft);
  font-size: 0.98rem;
  line-height: 1.9;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 10px 0 16px;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--legal-text-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.08em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--legal-accent);
  transform: rotate(45deg);
}

.legal-section a {
  color: var(--legal-text);
  text-decoration-color: rgba(31, 28, 24, 0.35);
  text-underline-offset: 3px;
}

.legal-section a:hover {
  text-decoration-color: var(--legal-text);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  color: var(--legal-text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-back::before {
  content: "←";
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.legal-back:hover::before {
  transform: translateX(-4px);
}

@media (max-width: 900px) {
  .legal-hero {
    padding: 142px 0 72px;
  }

  .legal-content {
    padding: 64px 0 96px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 640px) {
  .legal-container {
    width: min(1240px, calc(100% - 24px));
  }

  .legal-hero {
    padding: 122px 0 58px;
  }

  .legal-hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .legal-hero p {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .legal-content {
    padding: 50px 0 78px;
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }

  .legal-company {
    padding: 20px;
  }

  .legal-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }
}
