.terms-page { font-family: Cairo, system-ui, sans-serif; }
.terms-page .sg-site-header { grid-template-columns: 48px minmax(0, 1fr) 48px; }
.legal-container { width: min(900px, calc(100% - 32px)); margin: 32px auto 44px; color: var(--text-main); }
.legal-content { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--border-gold); border-radius: 20px; background: var(--card-bg); overflow-wrap: anywhere; }
.legal-content h1 { margin: 0 0 12px; text-align: center; font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.6; }
.legal-content .last-updated { text-align: center; font-size: .8rem; color: var(--text-muted); margin: 0 0 32px; }
.legal-content h2 { color: var(--gold-primary); margin: 30px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-gold); font-size: clamp(1.1rem, 2.5vw, 1.35rem); line-height: 1.7; scroll-margin-top: 24px; }
.legal-content p { color: var(--text-main); line-height: 2.1; margin: 0 0 18px; }
.terms-page.light-mode .legal-content h1 { background-image: none; -webkit-text-fill-color: #795b10; color: #795b10; }
.terms-page.light-mode .legal-content h2, .terms-page.light-mode .sg-shell-brand, .terms-page.light-mode .sg-shell-menu, .terms-page.light-mode .sg-shell-theme { color: #795b10; }
.terms-page footer.footer { margin-top: 0; padding-block: 22px; }
@media(max-width:600px) {
    .legal-container { width: calc(100% - 24px); margin: 22px auto 30px; }
    .legal-content { padding: 22px 18px; border-radius: 16px; }
    .legal-content p { font-size: .9rem; line-height: 2; }
}
/* Gold typography with a restrained shadow, scoped to the terms page. */
.terms-page .legal-content :is(h1, h2, p) {
    background-image: linear-gradient(110deg, #d6b45a 0%, #fff0b0 38%, #e2c56e 70%, #ffe7a0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: #d4af37;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.terms-page.light-mode .legal-content :is(h1, h2, p) {
    background-image: linear-gradient(110deg, #765311 0%, #966e20 38%, #60430d 70%, #896019 100%);
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 1px rgba(105, 75, 15, .1);
}
