body.dtr-public-shell.legal-guide-page {
  background: linear-gradient(180deg, var(--navy, #081016) 0%, var(--navy2, #0e1a20) 56%, var(--navy, #081016) 100%);
}

.legal-hero {
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--border, rgba(246,241,230,.07));
}

.legal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: 34px;
  align-items: center;
}

.legal-hero h1 {
  max-width: 840px;
  font-family: var(--font-d, 'Bebas Neue', sans-serif);
  font-size: clamp(46px, 7vw, 78px);
  line-height: .95;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text, #f6f1e6);
  margin: 0 0 18px;
}

.legal-hero h1 span,
.legal-section h2 span {
  color: var(--accent, #f2b84b);
}

.legal-sub {
  max-width: 720px;
  color: var(--text2, #c6d2d8);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 20px;
}

.legal-trust-card {
  border: 1px solid var(--aborder, rgba(242,184,75,.28));
  background: linear-gradient(135deg, rgba(242,184,75,.12), rgba(255,255,255,.035));
  border-radius: 10px;
  padding: 22px;
}

.legal-trust-card h2 {
  font-family: var(--font-m, 'DM Mono', monospace);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent, #f2b84b);
  margin: 0 0 12px;
}

.legal-trust-card p {
  color: var(--text2, #c6d2d8);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
  padding: 46px 0 72px;
}

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

.legal-section {
  margin: 0 0 46px;
}

.legal-section h2 {
  font-family: var(--font-d, 'Bebas Neue', sans-serif);
  font-size: clamp(31px, 4.5vw, 46px);
  line-height: 1;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--text, #f6f1e6);
  margin: 0 0 14px;
  scroll-margin-top: 110px;
}

.legal-section h3 {
  color: var(--accent, #f2b84b);
  font-size: 20px;
  margin: 26px 0 10px;
}

.legal-section p,
.legal-section li,
.legal-section td,
.legal-section th {
  color: var(--text2, #c6d2d8);
  font-size: 16px;
  line-height: 1.75;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section strong,
.legal-section th {
  color: var(--text, #f6f1e6);
}

.legal-section a:not(.guide-button),
.legal-section a:not(.guide-button):visited,
.legal-callout a,
.legal-callout a:visited,
.legal-warning a,
.legal-warning a:visited,
.legal-source-card a,
.legal-source-card a:visited {
  color: var(--accent, #f2b84b);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(242,184,75,.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.legal-section a:not(.guide-button):hover,
.legal-section a:not(.guide-button):focus,
.legal-callout a:hover,
.legal-callout a:focus,
.legal-warning a:hover,
.legal-warning a:focus,
.legal-source-card a:hover,
.legal-source-card a:focus {
  color: #ffd36a;
  text-decoration-color: #ffd36a;
}

.legal-article .toc {
  border: 1px solid var(--border, rgba(246,241,230,.07));
  background: rgba(255,255,255,.035);
  border-radius: 10px;
  padding: 20px;
  margin: 0 0 34px;
}

.legal-article .toc .toc-title {
  color: var(--text, #f6f1e6);
  font-weight: 800;
  font-size: 12px;
}

.legal-article .toc a {
  display: block;
  color: var(--text2, #c6d2d8);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, rgba(246,241,230,.07));
}

.legal-article .toc a:last-child {
  border-bottom: 0;
}

.legal-article .toc a:hover,
.legal-article .toc a:focus {
  color: var(--accent, #f2b84b);
}

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

.legal-section li {
  position: relative;
  padding-left: 26px;
  margin: 0 0 12px;
}

.legal-section li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #f2b84b);
}

.legal-callout,
.legal-warning,
.legal-source-card {
  border: 1px solid var(--border, rgba(246,241,230,.07));
  background: rgba(255,255,255,.035);
  border-radius: 8px;
  padding: 20px;
  margin: 22px 0;
}

.legal-warning {
  border-color: rgba(255,177,66,.34);
  background: rgba(242,184,75,.1);
}

.legal-label {
  font-family: var(--font-m, 'DM Mono', monospace);
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--accent, #f2b84b);
  margin-bottom: 8px;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border, rgba(246,241,230,.07));
  border-radius: 8px;
  margin: 20px 0;
}

.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border, rgba(246,241,230,.07));
}

.legal-table th {
  font-family: var(--font-m, 'DM Mono', monospace);
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  background: rgba(255,255,255,.04);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.legal-card {
  border: 1px solid var(--border, rgba(246,241,230,.07));
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  padding: 18px;
}

.legal-card h3 {
  margin-top: 0;
}

.legal-sources a,
.legal-section a {
  color: var(--accent, #f2b84b);
}

.legal-disclaimer {
  font-size: 13px !important;
  color: var(--muted, #8798a0) !important;
}

.legal-section .faq-q {
  color: var(--text, #f6f1e6);
  font-weight: 800;
}

.legal-section .faq-a {
  color: var(--text2, #c6d2d8);
}

html[data-theme="light"] body.dtr-public-shell.legal-guide-page {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 55%, #f7f9fc 100%);
}

html[data-theme="light"] .legal-trust-card,
html[data-theme="light"] .legal-callout,
html[data-theme="light"] .legal-warning,
html[data-theme="light"] .legal-source-card,
html[data-theme="light"] .legal-card,
html[data-theme="light"] .legal-table-wrap {
  background: rgba(255,255,255,.76);
  border-color: rgba(19,42,65,.12);
}

html[data-theme="light"] .legal-table th {
  background: rgba(18,35,54,.06);
}

html[data-theme="light"] .legal-article .toc .toc-title,
html[data-theme="light"] .legal-section .faq-q {
  color: #102033;
}

html[data-theme="light"] .legal-article .toc a,
html[data-theme="light"] .legal-section .faq-a {
  color: #42566f;
}

html[data-theme="light"] .legal-section a:not(.guide-button),
html[data-theme="light"] .legal-section a:not(.guide-button):visited,
html[data-theme="light"] .legal-callout a,
html[data-theme="light"] .legal-callout a:visited,
html[data-theme="light"] .legal-warning a,
html[data-theme="light"] .legal-warning a:visited,
html[data-theme="light"] .legal-source-card a,
html[data-theme="light"] .legal-source-card a:visited {
  color: #8f5b00;
  text-decoration-color: rgba(143,91,0,.45);
}

html[data-theme="light"] .legal-section a:not(.guide-button):hover,
html[data-theme="light"] .legal-section a:not(.guide-button):focus,
html[data-theme="light"] .legal-callout a:hover,
html[data-theme="light"] .legal-callout a:focus,
html[data-theme="light"] .legal-warning a:hover,
html[data-theme="light"] .legal-warning a:focus,
html[data-theme="light"] .legal-source-card a:hover,
html[data-theme="light"] .legal-source-card a:focus {
  color: #6f4500;
  text-decoration-color: #6f4500;
}

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

  .legal-layout {
    padding-top: 28px;
  }

  .guide-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-card-grid {
    grid-template-columns: 1fr;
  }
}
