.legal { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.legal__container { max-width: 54rem; }
.legal__header { margin-bottom: 2rem; }
.legal__eyebrow { color: var(--level-text); font-size: 0.875rem; margin-bottom: 0.75rem; }
.legal h1 { font-family: var(--title-font-family); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.15; margin-bottom: 1.5rem; }
.legal__notice { border-left: 3px solid var(--tags-first-text); background: var(--level-second-line-bg); padding: 1rem 1.25rem; line-height: 1.6; }
.legal__content { font-size: 1.0625rem; line-height: 1.7; overflow-wrap: anywhere; }
.legal__content h2 { font-family: var(--title-font-family); font-size: clamp(1.375rem, 3vw, 1.625rem); font-weight: 500; line-height: 1.35; margin-block: 2.5rem 1rem; }
.legal__content h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; margin-block: 1.75rem 0.75rem; }
.legal__content p, .legal__content ul, .legal__content ol { margin-block: 0 1rem; }
.legal__content ul, .legal__content ol { padding-inline-start: 1.5rem; }
.legal__content ul { list-style: disc; }
.legal__content ol { list-style: decimal; }
.legal__content li { margin-bottom: 0.625rem; }
.legal__content a { color: var(--tags-first-text); text-decoration: underline; text-underline-offset: 0.15em; }
.legal__content a:focus-visible { outline: 2px solid var(--tags-first-text); outline-offset: 3px; }
.legal__content strong, .legal__notice strong { font-weight: 600; }
/* Restore native table layout after the shared reset flattens rows and cells. */
.legal__content :is(table, thead, tbody, tfoot, tr, th, td) { display: revert; }
.legal__content table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; margin-block: 1.5rem; }
.legal__content th, .legal__content td { text-align: start; vertical-align: top; padding: 0.75rem; border: 1px solid var(--link-border); }
.legal__content th { background: var(--level-second-line-bg); font-weight: 600; }
.legal__content code { font-size: 0.9em; }
@media (max-width: 30em) {
  .legal__content table { font-size: 0.875rem; overflow-wrap: break-word; }
  .legal__content th, .legal__content td { padding: 0.5rem 0.25rem; }
  .legal__content table code { overflow-wrap: anywhere; }
}

.legal__content h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; margin-block: 1.5rem 0.75rem; }
