:root {
  --cream: #FAF5F1;
  --ivory: #FDFAF6;
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --ruby: #B23A55;
  --ruby-deep: #8E2C43;
  --ruby-dark: #6E1F34;
  --rose-mist: #F3DCE1;
  --hairline: #E8DDD6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1A1A1A;
  background: #FAF5F1;
  overflow-x: hidden;
}

a {
  color: var(--ruby);
}

:focus-visible {
  outline: 3px solid var(--ruby);
  outline-offset: 2px;
}

.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- legal header ---------- */

.legal-header {
  background: var(--ruby);
  padding-bottom: 44px;
}

.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.legal-brand-glyph {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 17px;
  flex: 0 0 auto;
}

.legal-brand-glyph::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border: 3px solid var(--ivory);
  border-bottom: none;
  border-radius: 50% 50% 0 0;
}

.legal-brand-glyph::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 13px;
  width: 2px;
  height: 10px;
  background: var(--ivory);
  transform: rotate(40deg);
  transform-origin: bottom center;
}

.legal-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.legal-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--ivory);
}

.legal-brand-caption {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose-mist);
  font-weight: 800;
}

.legal-home {
  background: var(--ivory);
  color: var(--ruby);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 6px;
}

.legal-home:hover {
  background: var(--rose-mist);
}

.legal-title-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 24px 0;
}

.legal-updated {
  color: var(--rose-mist);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 10px;
}

.legal-title {
  color: var(--ivory);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.legal-intro {
  color: var(--ivory);
  font-size: 16px;
  max-width: 780px;
}

/* ---------- legal body ---------- */

.legal-page {
  padding: 48px 0 24px;
}

.toc {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-left: 5px solid var(--ruby);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc h2 {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ruby);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  columns: 2;
  column-gap: 36px;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.toc-list a:hover {
  color: var(--ruby);
}

.legal-content section {
  margin-bottom: 44px;
  padding-top: 6px;
}

.legal-content section[id] {
  scroll-margin-top: 24px;
}

.legal-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #B23A55;
  margin-bottom: 16px;
  line-height: 1.25;
}

.legal-content h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--ruby);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: 3px;
}

.legal-content h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 22px 0 10px;
}

.legal-content p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 22px;
  color: var(--ink-soft);
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--ink);
}

/* ---------- legal footer ---------- */

.legal-footer {
  border-top: 2px solid var(--ruby);
  margin-top: 48px;
  background: var(--cream);
  padding: 36px 0 28px;
}

.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.legal-footer a {
  color: var(--ruby);
  font-weight: 700;
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--ruby-deep);
}

.legal-top {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- legal responsive ---------- */

@media (max-width: 640px) {
  .toc-list {
    columns: 1;
  }

  .legal-title {
    font-size: 32px;
  }

  .legal-content h2 {
    font-size: 22px;
  }

  .legal-header-inner {
    flex-wrap: wrap;
  }
}
