/* ─── Long-form static content (Privacy Policy / Terms / Help leaves)
 *
 * Body copy lives inside #Content as an HTML blob fetched from the
 * Help-supports API. Content authors use heading levels and lists
 * inline, so we restyle the prose primitives instead of asking them
 * to add classes. Scoped to #Content to avoid leaking onto other
 * pages.
 *
 * Reading width is capped at ~72ch — the long lines we had before
 * (full container width) hurt scanning. Headings get a clear hierarchy
 * with a thin orange accent on h2 so readers see section breaks at a
 * glance. Lists, blockquotes, and tables get sensible defaults.
 */

.settings-page-header .back-btn {
    align-items: flex-start;
}

.settings-page-header .back-btn .arrow {
    margin-top: 5px;
}

.settings-page-header .label {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#Content {
    max-width: 72ch;
    margin: 0 auto;
    padding: var(--s-5) var(--s-4) var(--s-8);
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-size: var(--t-body-md);
    line-height: 1.65;
}

#Content *  {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Headings: clear hierarchy, generous top spacing */
#Content h1 {
    font-size: var(--t-display-md, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 var(--s-5);
    color: var(--text-primary);
}
#Content h2 {
    font-size: var(--t-title-lg, 22px);
    font-weight: 700;
    margin: var(--s-7) 0 var(--s-3);
    padding-bottom: var(--s-2);
    border-bottom: 2px solid var(--brand-primary, #FF7A1A);
    display: inline-block;
    color: var(--text-primary);
}
#Content h3 {
    font-size: var(--t-title-md, 18px);
    font-weight: 600;
    margin: var(--s-5) 0 var(--s-2);
    color: var(--text-primary);
}
#Content h4,
#Content h5,
#Content h6 {
    font-size: var(--t-body-lg, 16px);
    font-weight: 600;
    margin: var(--s-4) 0 var(--s-2);
}

/* Body copy, lists, links */
#Content p {
    margin: 0 0 var(--s-3);
}
#Content ul,
#Content ol {
    margin: 0 0 var(--s-3) var(--s-5);
    padding: 0;
}
#Content li {
    margin-bottom: var(--s-1);
}
#Content li > p {
    margin-bottom: var(--s-1);
}
#Content a {
    color: var(--brand-primary, #FF7A1A);
    text-decoration: underline;
    text-underline-offset: 2px;
}
#Content a:hover {
    text-decoration-thickness: 2px;
}
#Content strong,
#Content b {
    font-weight: 600;
    color: var(--text-primary);
}
#Content em,
#Content i {
    font-style: italic;
}

/* Blockquotes, code, tables */
#Content blockquote {
    margin: var(--s-4) 0;
    padding: var(--s-3) var(--s-4);
    border-left: 3px solid var(--brand-primary, #FF7A1A);
    background: var(--bg-light, #FFF8F0);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}
#Content pre,
#Content code {
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--surface-2, #F4ECE2);
    border-radius: var(--radius-sm, 4px);
}
#Content code {
    padding: 2px 6px;
    font-size: 0.9em;
}
#Content pre {
    padding: var(--s-3);
    overflow-x: auto;
    margin: var(--s-3) 0;
}
#Content hr {
    border: 0;
    border-top: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
    margin: var(--s-6) 0;
}
#Content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--s-4) 0;
    font-size: var(--t-body-sm);
}
#Content th,
#Content td {
    padding: var(--s-2) var(--s-3);
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.08));
    text-align: left;
    vertical-align: top;
}
#Content th {
    background: var(--bg-light);
    font-weight: 600;
}

#Content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--s-3) auto;
    border-radius: var(--radius-sm);
}

@media (max-width: 599px) {
    #Content {
        padding: var(--s-4) var(--s-3) var(--s-6);
        font-size: var(--t-body-sm);
    }
    #Content h1 { font-size: 22px; }
    #Content h2 { font-size: 18px; }
    #Content h3 { font-size: 16px; }
}
