/* =====================================================
   Help, Terms of Service, Privacy Policy and About pages
   (templates/pages). The app's font and colors, laid out
   for reading: one column, long lines kept short.
   ===================================================== */

:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --soft-bg: #f8fafc;
    --primary: #0f172a;
    --on-primary: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --link: #2563eb;
}

body.dark-mode {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --soft-bg: #1e293b;
    --primary: #ffffff;
    --on-primary: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --link: #93c5fd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.info-page {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%;
}

/* Top bar */
.info-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.info-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    min-width: 0;
}

.info-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.info-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.info-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.info-btn:hover {
    background: var(--soft-bg);
}

.info-btn-primary,
.info-article a.info-btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.info-btn-primary:hover {
    background: var(--primary);
    opacity: 0.88;
}

/* Reading column */
.info-main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.info-main.info-main--wide {
    max-width: 1000px;
}

.info-article h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.info-article h2 {
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 600;
    margin: 40px 0 12px;
    scroll-margin-top: 80px;
}

.info-article h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 600;
    margin: 22px 0 6px;
}

.info-article p {
    margin-bottom: 14px;
}

.info-article ul,
.info-article ol {
    margin: 0 0 16px 22px;
}

.info-article li {
    margin-bottom: 8px;
}

.info-article li::marker {
    color: var(--text-muted);
}

.info-article a {
    color: var(--link);
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.info-article strong {
    font-weight: 600;
}

.info-article h3 i {
    width: 1.3em;
    color: var(--text-muted);
}

.info-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.info-lead {
    color: var(--text-muted);
    font-size: 1.12rem;
    margin-bottom: 24px;
}

/* An example request, written the way it is typed */
.info-query {
    display: inline;
    padding: 1px 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--soft-bg);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

p.info-query {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 16px;
}

/* "On this page" links */
.info-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.info-toc a {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.88rem;
    text-decoration: none;
}

.info-toc a:hover {
    background: var(--soft-bg);
}

/* Callout */
.info-note {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--soft-bg);
}

.info-note i {
    margin-top: 4px;
    color: var(--text-muted);
}

.info-note p:last-child {
    margin-bottom: 0;
}

/* Questions */
.info-article details {
    border-bottom: 1px solid var(--border-color);
}

.info-article details:first-of-type {
    border-top: 1px solid var(--border-color);
}

.info-article summary {
    position: relative;
    padding: 14px 32px 14px 0;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.info-article summary::-webkit-details-marker {
    display: none;
}

.info-article summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 300;
}

.info-article details[open] summary::after {
    content: '−';
}

.info-article details p {
    color: var(--text-muted);
}

/* =====================================================
   About
   ===================================================== */
.about-hero {
    text-align: center;
    padding: 16px 0 8px;
}

.about-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.about-eyebrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-hero h1 {
    font-size: 2.6rem;
    margin: 6px auto 14px;
    max-width: 720px;
}

.about-hero h1 span {
    color: var(--text-muted);
}

.about-hero .info-lead {
    max-width: 620px;
    margin: 0 auto;
}

.about-section {
    margin-top: 56px;
}

.about-section > h2 {
    text-align: center;
    margin: 0 0 6px;
}

.about-section-lead {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px !important;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.about-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
}

.about-card h3 {
    margin: 14px 0 6px;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.about-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--soft-bg);
    border: 1px solid var(--border-color);
    font-size: 1.05rem;
}

.info-article ol.about-steps {
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    counter-reset: step;
}

.about-steps li {
    counter-increment: step;
    margin: 0;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
}

.about-steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
}

.about-steps h3 {
    margin: 14px 0 6px;
}

.about-steps p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.info-article ul.about-social {
    list-style: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.about-social li {
    margin: 0;
}

.about-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
}

.about-social a:hover {
    background: var(--soft-bg);
}

.about-social i {
    font-size: 1.15rem;
}

.about-cta {
    text-align: center;
    margin-top: 48px;
}

.about-cta .info-btn {
    padding: 12px 26px;
    font-size: 1rem;
}

/* Footer */
.info-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.info-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-bottom: 6px;
}

.info-footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.info-footer-links a:hover,
.info-footer-links a[aria-current="page"] {
    color: var(--text-main);
}

.info-footer-links a[aria-current="page"] {
    font-weight: 500;
}

.info-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* =====================================================
   Phones
   ===================================================== */
@media (max-width: 600px) {
    .info-topbar {
        padding: 10px 16px;
    }

    .info-btn {
        padding: 7px 14px;
        font-size: 0.88rem;
    }

    .info-main {
        padding: 28px 16px 48px;
    }

    .info-article h1 {
        font-size: 1.8rem;
    }

    .about-hero h1 {
        font-size: 1.9rem;
    }

    .info-article h2 {
        font-size: 1.2rem;
    }

    .about-section {
        margin-top: 44px;
    }

    .info-footer {
        padding: 16px;
    }

    .info-footer-links {
        gap: 8px 20px;
    }
}

@media (max-width: 380px) {
    .info-brand span {
        display: none;
    }
}
