:root {
  --legal-bg: #030504;
  --legal-surface: #0c100d;
  --legal-gold: #d8b875;
  --legal-text: #f2efe8;
  --legal-muted: #a2aaa6;
  --legal-line: rgba(216, 184, 117, .18);
}

body:has(.legal-site) .page-shell {
  display: block;
  padding: 0;
  background: var(--legal-bg);
}
body:has(.legal-site) .page-shell::before,
body:has(.legal-site) .page-shell::after { display: none; }

.legal-site { min-height: 100vh; color: var(--legal-text); background: var(--legal-bg); }
.legal-site a { color: inherit; }
.legal-header { width: min(calc(100% - 3rem), 1120px); margin-inline: auto; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 94px; border-bottom: 1px solid var(--legal-line); }
.legal-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; white-space: nowrap; }
.legal-brand-mark { position: relative; color: var(--legal-gold); font: 2rem/.9 Georgia, 'Times New Roman', serif; letter-spacing: -.09em; }
.legal-brand-mark::after { position: absolute; top: -.15rem; right: -.35rem; width: .18rem; height: .18rem; border-radius: 50%; background: var(--legal-gold); content: ''; box-shadow: 0 0 10px var(--legal-gold); }
.legal-brand-name { color: var(--legal-text); font-size: .67rem; font-weight: 750; letter-spacing: .16em; }
.legal-back { padding: .65rem .8rem; border: 1px solid var(--legal-line); border-radius: .55rem; color: var(--legal-muted) !important; font-size: .79rem; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.legal-back:hover { color: var(--legal-gold) !important; border-color: rgba(216, 184, 117, .5); }
.legal-back span { margin-right: .4rem; color: var(--legal-gold); }

.legal-page { width: min(calc(100% - 3rem), 820px); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0 5rem; }
.legal-heading { max-width: 760px; }
.legal-heading h1 { margin: 0; font: 400 clamp(2.55rem, 7vw, 5.2rem)/1.02 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; text-wrap: balance; }
.legal-contents { display: grid; gap: .85rem; padding: 1.6rem 0 1.9rem; border-bottom: 1px solid var(--legal-line); }
.legal-contents > span { color: #868c82; font-size: .68rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.legal-contents-links { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; }
.legal-contents-links a { color: #b5bcb2; font-size: .76rem; line-height: 1.6; text-decoration: none; }
.legal-contents-links a:hover { color: var(--legal-gold); }

.legal-article { color: #d9ddd5; font-size: .97rem; line-height: 1.8; }
.legal-section { padding: 2.5rem 0 2.6rem; border-bottom: 1px solid var(--legal-line); scroll-margin-top: 1.5rem; }
.legal-section h2 { margin: 0 0 1.35rem; color: var(--legal-text); font: 400 clamp(1.55rem, 3vw, 2.1rem)/1.17 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; }
.legal-section p { margin: 0 0 1.1rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--legal-gold); text-decoration-color: rgba(216, 184, 117, .5); text-underline-offset: .2em; }
.legal-section strong { color: var(--legal-text); }
.legal-placeholder { color: #dfc47e; background: rgba(216, 184, 117, .1); border-radius: .2rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: .03rem .2rem; }
.legal-table { width: 100%; margin: 1.3rem 0; overflow-x: auto; border: 1px solid var(--legal-line); border-radius: .7rem; }
.legal-table table { width: 100%; min-width: 400px; border-collapse: collapse; font-size: .87rem; }
.legal-table th,
.legal-table td { padding: .72rem .9rem; border-bottom: 1px solid rgba(216, 184, 117, .12); text-align: left; }
.legal-table th { color: var(--legal-gold); background: rgba(216, 184, 117, .07); font-weight: 700; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th:last-child,
.legal-table td:last-child { text-align: right; white-space: nowrap; }
.legal-end { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2rem; color: #737d72; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-end a { color: var(--legal-gold); text-decoration: none; }
@media (max-width: 600px) {
  .legal-header { width: calc(100% - 2rem); }
  .legal-header { min-height: 78px; }
  .legal-brand-mark { font-size: 1.8rem; }
  .legal-back { font-size: .72rem; }
  .legal-page { width: calc(100% - 2rem); padding-top: 1.5rem; }
  .legal-contents-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
  .legal-contents-links::-webkit-scrollbar { display: none; }
  .legal-contents-links a { flex: none; }
  .legal-article { font-size: .91rem; line-height: 1.74; }
  .legal-section { padding: 2rem 0; }
  .legal-table table { min-width: 0; table-layout: fixed; }
  .legal-table th:first-child,
  .legal-table td:first-child { width: 32%; }
  .legal-table th:last-child,
  .legal-table td:last-child { white-space: normal; text-align: left; }
}
