/* =============================================================
   FaxSafe – Policy pages shared stylesheet (terms + privacy)
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.fs-doc {
    background: var(--fs-bg-soft, #eef0f4);
    color: #222;
}
/* Header and footer: home/partials/site_header.html + site_footer.html (faxsafe-site.css). */

/* ── Page layout ── */
.page-wrapper {
    padding: 40px 16px 96px;
}
.content-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(16, 19, 28, .06);
}
@media (min-width: 768px) {
    .content-card { padding: 56px; }
}
@media (max-width: 480px) {
    .page-wrapper { padding: 24px 12px 64px; }
    .content-card { padding: 24px 20px; border-radius: 18px; }
}

/* ── Policy content ── */
.policy-content {
    font-family: var(--fs-font, sans-serif);
    line-height: 1.7;
    color: #222;
}
.policy-content h1,
.policy-content h2,
.policy-content h3 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111;
}
.policy-content h1 {
    font-size: 2rem;
    margin-top: 0;
}
.policy-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.3rem;
}
.policy-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}
.policy-content p {
    margin: 0.5rem 0 1rem;
}
.policy-content a {
    color: #0073e6;
    text-decoration: none;
}
.policy-content a:hover {
    text-decoration: underline;
}
.policy-content ul,
.policy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
.policy-content li {
    margin-bottom: 0.4rem;
}
.policy-content strong {
    font-weight: 700;
}

/* ── Tables ── */
.policy-content table {
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    width: 100%;
}
.policy-content table,
.policy-content th,
.policy-content td {
    border: 1px solid #ddd;
}
.policy-content th,
.policy-content td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
.policy-content th {
    background: #f9f9f9;
    font-weight: 700;
}

/* ── Back to top link ── */
.policy-content .back-to-top {
    margin: 2rem 0;
    font-weight: 700;
}

/* ── Table of contents box ── */
.policy-content #table-of-contents {
    background: #f9f9f9;
    border: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.policy-content #table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.policy-content #table-of-contents ul ul {
    margin-left: 1.5rem;
    margin-top: 0.25rem;
}
.policy-content #table-of-contents li {
    margin-bottom: 0.4rem;
}
.policy-content #table-of-contents a {
    color: #0073e6;
    font-weight: 600;
}

/* ── Scroll-to-top button ── */
#scrollToTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.8);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}
#scrollToTop:hover { background: #000; }
#scrollToTop svg { width: 20px; height: 20px; }

/* ── Help Center ── */
.help-center .faq-item { padding: 0.25rem 0 0.5rem; }
.help-center .faq-item h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.help-center .faq-item ol,
.help-center .faq-item ul { padding-left: 0.25rem; }
.help-cta {
    margin-top: 2.5rem;
    padding: 28px;
    border-radius: 10px;
    background: #f1f5ff;
    border: 1px solid #dbe5ff;
    text-align: center;
}
.help-cta h2 { border: none; margin-top: 0; padding: 0; }
.help-cta-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.policy-content .help-cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    background: #0B5CFF;
    color: #fff;
    font-weight: 700;
}
.policy-content .help-cta-btn:hover { background: #0846c4; text-decoration: none; }
