/* Terms + Privacy pages: readable long-form text in the NightMantra style */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
.legal-wrap { max-width: 720px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 16px 56px; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; width: auto; }
.legal-top a.back { color: var(--accent); font-size: 15px; }

h1 { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.2; letter-spacing: -0.01em; margin: 28px 0 6px; }
.updated { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.3; margin: 40px 0 10px; scroll-margin-top: 16px; }
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
p, li { color: rgba(241, 233, 210, 0.86); }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.summary { background: var(--surface); border-radius: 20px; padding: 20px 22px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; font-size: 19px; }
.summary ul { margin-bottom: 0; }

.toc { margin: 24px 0 0; }
.toc ol { columns: 2; column-gap: 28px; font-size: 15px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text); background: var(--surface-raised); }
tr:last-child td { border-bottom: none; }
td { color: rgba(241, 233, 210, 0.86); }

.note { border-left: 3px solid var(--premium); padding: 4px 0 4px 14px; margin: 0 0 14px; }
.business { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); font-style: normal; font-size: 14px; color: var(--text-muted); }
.business p { color: var(--text-muted); margin: 0; }
