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

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: #f7f8ff;
    font-family: 'DM Sans', sans-serif;
    color: #222;
    -webkit-font-smoothing: antialiased;
}

/* ── Header — matches landing-page.html ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
/* header-section, header-container, site-logo, brand-name → faxsafe-header.css */

/* ── Page layout ── */
.page-wrapper {
    min-height: calc(100vh - 68px);   /* 68px = header height */
    padding: 48px 16px 80px;
}
.content-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 40px;
}
@media (min-width: 768px) {
    .content-card { padding: 56px; }
}

/* ── Policy content ── */
.policy-content {
    font-family: 'DM Sans', 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; }
