@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #f5f5f2;
  --paper: #ffffff;
  --ink: #111318;
  --muted: #667085;
  --soft: #e8e5dc;
  --accent: #c8a45d;
  --dark: #08080a;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% -5%, rgba(200, 164, 93, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(15, 118, 110, 0.11), transparent 26rem),
    linear-gradient(180deg, #fbfbf9 0%, #f0f0ec 100%);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

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

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

.container {
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(17, 19, 24, 0.06);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
}

.topbar__inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 176px;
  max-width: 48vw;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  padding: 9px 16px;
  color: #3c4350;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease;
}

.back-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

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

.legal-hero__inner {
  max-width: 940px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8a909d;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs a {
  color: #6b7280;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: #c2c6cf;
}

.eyebrow {
  margin: 30px 0 0;
  color: #916c29;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

h1 {
  max-width: 960px;
  margin: 16px 0 0;
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.legal-section {
  padding: 26px 0 88px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.doc-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.doc-nav strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-nav a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #566070;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  transition: background 160ms ease, color 160ms ease;
}

.doc-nav a:hover {
  background: #18181b;
  color: #ffffff;
}

.legal-doc {
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  padding: clamp(24px, 4vw, 52px);
  color: #4f5664;
  box-shadow: var(--shadow);
}

.legal-doc h2,
.legal-doc h3 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.2;
}

.legal-doc h2 {
  display: flex;
  gap: 12px;
  margin: 34px 0 14px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 900;
}

.legal-doc h2:first-child,
.legal-doc h3:first-child {
  margin-top: 0;
}

.legal-doc h2::before {
  content: "";
  width: 5px;
  min-height: 1.2em;
  border-radius: 999px;
  background: var(--accent);
}

.legal-doc h3 {
  margin: 32px 0 12px;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 900;
}

.legal-doc p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.85;
}

.legal-doc strong {
  color: var(--ink);
  font-weight: 900;
}

.legal-doc a {
  color: #8a641f;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(200, 164, 93, 0.36);
  text-underline-offset: 3px;
}

.legal-doc mark {
  display: inline-flex;
  border-radius: var(--radius);
  background: rgba(200, 164, 93, 0.18);
  padding: 5px 9px;
  color: var(--ink);
  font-weight: 900;
}

.footer {
  border-top: 1px solid rgba(17, 19, 24, 0.06);
  background: rgba(251, 251, 249, 0.9);
  padding: 48px 0;
  color: #626977;
  backdrop-filter: blur(20px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.footer p,
.footer a,
.footer li {
  font-size: 14px;
  line-height: 1.7;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  transition: color 160ms ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer__copy {
  display: block;
  margin-top: 22px;
  color: #9aa0aa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.socials a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .legal-layout,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    border-radius: 0 0 22px 22px;
  }

  .topbar__inner {
    min-height: 64px;
  }

  .back-link {
    padding-inline: 12px;
    font-size: 13px;
  }

  .legal-hero {
    padding: 34px 0 20px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .legal-section {
    padding-bottom: 48px;
  }

  .legal-doc {
    padding: 22px;
  }

  .legal-doc p {
    font-size: 15px;
    line-height: 1.75;
  }

  .footer {
    padding: 38px 0;
  }
}
