:root {
  --ink: #221D18;
  --ink-soft: #4A4238;
  --ink-mute: #6B6152;
  --cream: #FAF7F2;
  --paper: #FFFFFF;
  --indigo: #4F46E5;
  --indigo-deep: #3730A3;
  --indigo-dark: #312E81;
  --indigo-soft: #EEF2FF;
  --gold: #C9A227;
  --gold-soft: #F6EBC5;
  --line: #EAE3D6;
  --line-strong: #D8CFBE;
}

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

.legal-page {
  background-color: #FAF7F2;
  color: #221D18;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.legal-page a {
  color: #3730A3;
}

.legal-page a:hover {
  color: #4F46E5;
}

/* ===== HEADER ===== */
.legal-header {
  background: linear-gradient(135deg, #312E81 0%, #4F46E5 100%);
  border-bottom: 3px solid #C9A227;
  padding: 64px 24px 56px;
}

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

.legal-brand {
  display: inline-block;
  background: #FFFFFF;
  color: #312E81 !important;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 3px 3px 0 0;
  border-bottom: 3px solid #C9A227;
  margin-bottom: 20px;
  text-decoration: none;
}

.legal-company {
  color: #E9E6F9;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-updated {
  color: #F6EBC5;
  font-size: 14px;
  font-weight: 600;
}

/* ===== CONTENT ===== */
.legal-content {
  padding: 56px 0 40px;
}

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

/* ===== TABLE OF CONTENTS ===== */
.toc {
  background: #FFFFFF;
  border: 1px solid #EAE3D6;
  border-left: 4px solid #4F46E5;
  border-radius: 8px;
  padding: 24px 26px;
  margin-bottom: 44px;
}

.toc h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6152;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 6px;
}

.toc li:last-child {
  margin-bottom: 0;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: #C9A227;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
  font-size: 13px;
}

.toc a {
  text-decoration: none;
  color: #4A4238;
  font-size: 15px;
}

.toc a:hover {
  color: #4F46E5;
}

/* ===== SECTIONS ===== */
.legal-content section {
  margin-bottom: 44px;
  padding-bottom: 8px;
}

.legal-content section:last-of-type {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #3730A3;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #C9A227;
}

.legal-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #221D18;
  margin: 22px 0 10px;
}

.legal-content p {
  font-size: 16px;
  color: #4A4238;
  margin-bottom: 16px;
}

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

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== FOOTER ===== */
.legal-footer {
  background: #312E81;
  border-top: 2px solid #C9A227;
  padding: 28px 0;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-footer p {
  color: #DCD8F2;
  font-size: 14px;
}

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

.legal-footer a {
  color: #F6EBC5;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-footer a:hover {
  color: #FFFFFF;
}

@media (max-width: 560px) {
  .legal-header {
    padding: 44px 16px 40px;
  }

  .legal-header h1 {
    font-size: 30px;
  }

  .legal-content {
    padding: 36px 0 28px;
  }

  .legal-content .container,
  .legal-header-inner,
  .legal-footer .container {
    padding: 0 16px;
  }

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

  .legal-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
