
:root {
  --orange: #FD4F0C;
  --black: #0A0A0A;
  --surface: #171717;
  --text: #F5F2EF;
  --muted: #858585;
  --border: rgba(255, 255, 255, 0.09);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
}

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

.topbar {
  height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 17px;
}

.brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

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

.back-link span {
  color: var(--orange);
  margin-left: 5px;
}

.legal-layout {
  width: min(1180px, 86%);
  margin: 75px auto 100px;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 95px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 35px;
}

.eyebrow,
.document-tag {
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.sidebar h2 {
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  line-height: 1.3;
  margin: 13px 0 8px;
}

.sidebar > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar nav a {
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  transition: 0.2s ease;
}

.sidebar nav a:hover {
  color: var(--text);
  background: var(--surface);
  border-left-color: var(--orange);
}

.document {
  min-width: 0;
}

.document-heading {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 45px;
}

.document-heading h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 17px 0;
}

.intro {
  color: #B0AAA5;
  font-size: 16px;
  max-width: 650px;
  line-height: 1.8;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 25px;
}

.document section {
  padding-bottom: 35px;
  margin-bottom: 35px;
  border-bottom: 1px solid var(--border);
}

.article-number {
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.document section h2 {
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 8px 0 15px;
}

.document section p {
  color: #B0AAA5;
  font-size: 14px;
  margin-bottom: 14px;
}

.document section ul {
  padding-left: 22px;
  margin: 12px 0 17px;
}

.document section li {
  color: #B0AAA5;
  font-size: 14px;
  padding: 4px 0;
}

.document section li::marker {
  color: var(--orange);
}

.email-link {
  display: inline-block;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
  margin: 2px 0 15px;
}

.email-link:hover {
  text-decoration: underline;
}

.document-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.document-footer a {
  color: var(--orange);
}

@media (max-width: 850px) {
  .legal-layout {
    width: 88%;
    grid-template-columns: 1fr;
    gap: 45px;
    margin-top: 45px;
  }

  .sidebar {
    position: static;
  }

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

  .sidebar nav a {
    background: var(--surface);
    border-left: 2px solid transparent;
  }
}

@media (max-width: 520px) {
  .topbar {
    height: 65px;
    padding: 0 6%;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 27px;
    height: 27px;
  }

  .legal-layout {
    width: 88%;
    margin: 35px auto 65px;
  }

  .document-heading h1 {
    font-size: 37px;
  }

  .intro {
    font-size: 14px;
  }

  .document section h2 {
    font-size: 20px;
  }

  .document section p,
  .document section li {
    font-size: 13px;
  }

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

  .document-footer {
    gap: 15px;
  }
}
