.legal-body {
  background:
    radial-gradient(circle at 92% 4%, rgba(201,164,94,.15), transparent 20rem),
    linear-gradient(180deg, #f8f5ed 0, var(--cream) 28rem, var(--paper) 100%);
}

.legal-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(251,248,241,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.legal-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header__inner .brand-logo { width: clamp(62px, 6vw, 70px); }

.legal-nav { display: flex; align-items: center; gap: 18px; }
.legal-nav a:not(.button) { color: #385148; font-size: .78rem; font-weight: 700; }
.legal-nav a:not(.button):hover { color: var(--emerald-800); }

.legal-hero { padding: 82px 0 54px; }
.legal-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); align-items: end; gap: 56px; }
.legal-hero h1 { max-width: 850px; margin: 22px 0 18px; color: var(--emerald-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.85rem, 6vw, 5.3rem); font-weight: 600; letter-spacing: -.055em; line-height: .95; }
.legal-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.legal-stamp { padding: 24px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 18px 5px 18px 5px; box-shadow: var(--shadow-sm); }
.legal-stamp small, .legal-stamp strong { display: block; }
.legal-stamp small { color: var(--muted); font-size: .65rem; font-weight: 850; letter-spacing: .12em; }
.legal-stamp strong { margin-top: 7px; color: var(--emerald-800); font-family: Georgia, serif; font-size: 1.25rem; }

.legal-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-bottom: 44px;
  padding: 20px 22px;
  color: #5d4921;
  background: #fff8e7;
  border: 1px solid rgba(201,164,94,.45);
  border-radius: 15px;
}
.legal-alert__icon { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--gold-500); border-radius: 50%; font-weight: 900; }
.legal-alert strong { display: block; margin-bottom: 4px; color: #594518; font-size: .82rem; letter-spacing: .04em; }
.legal-alert p { margin: 0; font-size: .86rem; }

.legal-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 54px; padding-bottom: 108px; }
.legal-toc { position: sticky; top: 106px; display: grid; gap: 5px; padding: 18px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.legal-toc strong { margin: 2px 10px 10px; color: var(--emerald-950); font-size: .67rem; letter-spacing: .13em; }
.legal-toc a { padding: 8px 10px; color: var(--muted); border-radius: 8px; font-size: .76rem; line-height: 1.35; }
.legal-toc a:hover { color: var(--emerald-900); background: var(--emerald-100); }

.legal-content { min-width: 0; }
.legal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 42px; }
.legal-summary article { min-height: 140px; padding: 22px; background: linear-gradient(145deg, white, #f6f2e9); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 25px rgba(8,75,58,.05); }
.legal-summary span { display: block; color: var(--gold-500); font-family: Georgia, serif; font-size: 1.8rem; line-height: 1; }
.legal-summary strong { display: block; margin: 14px 0 5px; color: var(--emerald-900); font-size: .75rem; letter-spacing: .07em; }
.legal-summary p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }

.legal-section { scroll-margin-top: 110px; padding: 34px 0; border-top: 1px solid var(--line); }
.legal-section:first-of-type { border-top: 0; }
.legal-section h2 { margin: 0 0 17px; color: var(--emerald-950); font-family: Georgia, serif; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 600; line-height: 1.08; }
.legal-section h3 { margin: 26px 0 9px; color: var(--emerald-800); font-size: .88rem; letter-spacing: .035em; }
.legal-section p, .legal-section li { color: #465b53; font-size: .94rem; }
.legal-section ul, .legal-section ol { display: grid; gap: 10px; padding-left: 21px; }
.legal-section a { color: var(--emerald-700); text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { color: var(--emerald-950); }
.legal-note { padding: 18px 20px; background: #edf5f1; border-left: 3px solid var(--emerald-700); border-radius: 0 10px 10px 0; }

.identity-card { display: grid; gap: 10px; margin-top: 20px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.identity-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.identity-row dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.identity-row dd { margin: 0; color: var(--ink); font-size: .88rem; }
.legal-placeholder { color: #8b6113 !important; background: #fff3cf; border-radius: 4px; box-decoration-break: clone; padding: 2px 5px; font-weight: 800; }

.legal-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 !important; list-style: none; }
.legal-sources li { margin: 0; }
.legal-sources a { height: 100%; display: block; padding: 14px 16px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.legal-sources a:hover { background: white; box-shadow: var(--shadow-sm); }

.legal-footer { padding: 54px 0 24px; color: #d7e6e0; background: #062f27; }
.legal-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 44px; padding-bottom: 42px; }
.legal-footer .brand--footer { max-width: 280px; }
.legal-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px 24px; }
.legal-footer__links a { color: #adc8bd; font-size: .78rem; }
.legal-footer__links a:hover { color: white; }
.legal-footer__base { padding-top: 20px; color: #91afa4; border-top: 1px solid rgba(255,255,255,.1); font-size: .7rem; }

@media (max-width: 900px) {
  .legal-nav a:not(.button) { display: none; }
  .legal-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-stamp { max-width: 370px; }
  .legal-shell { grid-template-columns: 1fr; gap: 26px; }
  .legal-toc { position: static; grid-template-columns: repeat(2, 1fr); }
  .legal-toc strong { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .legal-header__inner { min-height: 70px; }
  .legal-header__inner .brand-logo { width: 58px; }
  .legal-header .button { min-height: 42px; padding: 9px 12px; font-size: .65rem; }
  .legal-hero { padding: 54px 0 38px; }
  .legal-hero h1 { font-size: clamp(2.5rem, 14vw, 3.65rem); }
  .legal-alert { grid-template-columns: 1fr; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-summary { grid-template-columns: 1fr; }
  .legal-summary article { min-height: auto; }
  .identity-row { grid-template-columns: 1fr; gap: 3px; }
  .legal-sources { grid-template-columns: 1fr; }
  .legal-footer__top { flex-direction: column; }
  .legal-footer__links { justify-content: flex-start; }
}

@media print {
  .legal-header, .legal-footer, .legal-toc, .legal-alert { display: none; }
  .legal-hero { padding: 0 0 28px; }
  .legal-shell { display: block; padding-bottom: 0; }
  .legal-section { break-inside: avoid; }
  body { background: white; }
}
