/* Reuse account typography and colors while giving long legal text a readable measure on phones and desktops. */
.legal-shell { max-width: 72ch; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.legal-shell h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; }
.legal-shell h2 { margin: 36px 0 12px; font-size: 21px; line-height: 1.35; }
.legal-shell p { margin: 0 0 16px; }
.legal-shell ul { margin: 0 0 20px; padding-left: 24px; }
.legal-shell li + li { margin-top: 8px; }
.legal-shell .legal-date { margin: 12px 0 28px; color: var(--muted); font-size: 14px; }
.legal-shell a, .legal-links a, .signup-legal a { text-underline-offset: 3px; }
/* Wrapping keeps the longer Russian policy names accessible instead of hiding them on small screens. */
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
.legal-links a:hover { color: var(--text); }
/* Use the page width for the rule and absorb any spare height above the footer. */
.legal-footer { margin-top: auto; padding: 16px 0 32px; border-top: 1px solid var(--line); }
/* Keep policy links within the account gutters even though the rule reaches the window edges. */
.legal-footer .legal-links { width: min(1120px, calc(100% - 32px)); margin-inline: auto; justify-content: center; }
.signup-legal { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
/* The public footer gains two policy links; give them their own row before the three-column layout becomes cramped. */
@media (max-width: 900px) {
    /* Policies wrap inside the utility row; they must not override the footer's equal Compare/Guides columns. */
    .landing-footer .landing-container { padding-block: 16px; }
    .landing-footer .legal-links { grid-row: 2; grid-column: 1 / -1; }
}
