/* Shared shell for the public document pages (Privacy, Terms, Support) — one stylesheet so the
   three stay visually identical instead of drifting apart as separate copy-pasted <style> blocks. */

.doc-page {
    min-height: 100vh;
    background: var(--qm-primary);
    padding: 40px 20px 60px;
    position: relative;
}

.doc-shell {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.doc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.doc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--qm-text-on-primary);
    text-decoration: none;
    font-family: var(--qm-font-display, inherit);
    font-weight: 700;
    font-size: var(--qm-text-xl);
}

.doc-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--qm-text-on-primary);
    font-size: var(--qm-text-md);
}

.doc-topbar-link {
    color: var(--qm-text-on-primary);
    text-decoration: none;
    font-size: var(--qm-text-base);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--qm-radius-full, 999px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s;
}

.doc-topbar-link:hover {
    background: rgba(255, 255, 255, 0.22);
}

.doc-card {
    background: var(--qm-bg-card);
    border-radius: var(--qm-radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 56px 64px;
}

.doc-header h1 {
    font-family: var(--qm-font-display, inherit);
    font-size: 36px;
    font-weight: 700;
    color: var(--qm-text-primary);
    margin: 0 0 8px;
}

.doc-meta {
    color: var(--qm-text-secondary);
    font-size: var(--qm-text-base);
    margin: 0 0 28px;
}

.doc-lede {
    font-size: var(--qm-text-lg);
    line-height: 1.7;
    color: var(--qm-text-primary);
    margin: 0 0 28px;
}

.doc-callout {
    background: var(--qm-primary-light);
    border-left: 3px solid var(--qm-primary);
    padding: 16px 20px;
    border-radius: var(--qm-radius-md);
    font-size: var(--qm-text-base);
    line-height: 1.65;
    color: var(--qm-text-primary);
    margin-bottom: 32px;
}

.doc-card h2 {
    font-family: var(--qm-font-display, inherit);
    font-size: var(--qm-text-xl);
    font-weight: 700;
    color: var(--qm-text-primary);
    margin: 36px 0 12px;
    padding-top: 20px;
    border-top: 1px solid var(--qm-border);
}

.doc-card h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.doc-card p,
.doc-card li {
    font-size: var(--qm-text-md);
    line-height: 1.75;
    color: var(--qm-text-secondary);
}

.doc-card ul,
.doc-card ol {
    padding-left: 22px;
    margin: 12px 0;
}

.doc-card li {
    margin-bottom: 8px;
}

.doc-card li > strong:first-child {
    color: var(--qm-text-primary);
}

.doc-card a {
    color: var(--qm-primary);
    text-decoration: none;
    font-weight: 600;
}

.doc-card a:hover {
    text-decoration: underline;
}

.doc-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--qm-border);
    text-align: center;
}

.doc-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: var(--qm-text-base);
    flex-wrap: wrap;
}

.doc-footer-links a {
    color: var(--qm-text-secondary);
    font-weight: 500;
}

.doc-footer-links a:hover {
    color: var(--qm-primary);
}

.doc-footer-links span {
    color: var(--qm-text-muted);
}

.doc-copyright {
    text-align: center;
    color: var(--qm-text-on-primary);
    opacity: 0.75;
    font-size: var(--qm-text-sm);
    margin: 24px 0 0;
}

/* Support page extras — FAQ accordion + contact tiles, kept in the same sheet since they only
   ever appear inside a .doc-card. */
.doc-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0 8px;
}

.doc-contact-tile {
    border: 1px solid var(--qm-border);
    border-radius: var(--qm-radius-lg);
    padding: 20px;
    text-align: left;
}

.doc-contact-tile .doc-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--qm-primary-light);
    color: var(--qm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: var(--qm-text-lg);
}

.doc-contact-tile h3 {
    font-size: var(--qm-text-md);
    margin: 0 0 6px;
    color: var(--qm-text-primary);
}

.doc-contact-tile p {
    font-size: var(--qm-text-base);
    margin: 0 0 10px;
    color: var(--qm-text-secondary);
}

/* The one real "email us" block on Support.razor - deliberately not styled as one tile among
   several fake "departments", since it's the single real inbox behind every contact reason. */
.doc-contact-single {
    border: 1px solid var(--qm-border);
    border-radius: var(--qm-radius-lg);
    padding: 24px;
    text-align: left;
    margin: 20px 0 8px;
}

.doc-contact-single .doc-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--qm-primary-light);
    color: var(--qm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: var(--qm-text-xl);
}

.doc-contact-single h3 {
    font-size: var(--qm-text-lg);
    margin: 0 0 6px;
    color: var(--qm-text-primary);
}

.doc-contact-single > p {
    font-size: var(--qm-text-base);
    margin: 0 0 12px;
    color: var(--qm-text-secondary);
}

.doc-contact-email {
    display: inline-block;
    font-size: var(--qm-text-md);
    font-weight: 600;
    color: var(--qm-primary);
    text-decoration: none;
    margin-bottom: 16px;
}

.doc-contact-email:hover {
    text-decoration: underline;
}

.doc-contact-hints {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--qm-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-contact-hints li {
    font-size: var(--qm-text-base);
    color: var(--qm-text-secondary);
}

.doc-contact-hints strong {
    color: var(--qm-text-primary);
}

.doc-faq-item {
    border-bottom: 1px solid var(--qm-border);
    padding: 18px 0;
}

.doc-faq-item:last-child {
    border-bottom: none;
}

.doc-faq-item h3 {
    font-size: var(--qm-text-md);
    font-weight: 600;
    color: var(--qm-text-primary);
    margin: 0 0 8px;
}

.doc-faq-item p {
    margin: 0;
}

@media (max-width: 700px) {
    .doc-card {
        padding: 36px 26px;
    }

    .doc-header h1 {
        font-size: var(--qm-text-stat);
    }
}
