/* ============================================================
   SH Analytics Academy — Privacy, Terms & FAQ Page
   ============================================================ */

/* ---- Breadcrumb ---- */
.breadcrumb-nav { background: var(--white); padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-body); }
.breadcrumb a { color: var(--teal); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-separator { color: var(--text-body); opacity: 0.65; }
.breadcrumb span:last-child { color: var(--navy); font-weight: 500; }

/* ---- View switching ---- */
.ptf-view { display: none; }

/* ---- Hero ---- */
.ptf-hero {
    background: var(--navy);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.ptf-hero-heading {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.ptf-hero-sub {
    font-size: 0.97rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ---- Tab Switcher ---- */
.ptf-tabs-wrap {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ptf-tabs {
    display: flex;
    justify-content: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.ptf-tab {
    padding: 1rem 1.6rem;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    display: inline-block;
}

.ptf-tab:hover { color: var(--teal); }

.ptf-tab.ptf-active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

/* ---- Policy / Terms Content Area ---- */
.ptf-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

/* Last Updated Badge */
.ptf-badge-wrap { text-align: center; margin-bottom: 2rem; }

.ptf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
}

/* Policy Block */
.ptf-block { margin-bottom: 2.25rem; }

.ptf-block-heading {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border);
}

.ptf-block p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 0.65rem;
}

.ptf-block p:last-child { margin-bottom: 0; }

.ptf-subhead {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1rem 0 0.4rem;
}

/* Custom checklist */
.ptf-ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.75rem;
}

.ptf-ul li {
    font-size: 0.91rem;
    color: var(--text-body);
    padding: 5px 0 5px 1.6rem;
    position: relative;
    line-height: 1.65;
}

.ptf-ul li::before {
    content: "✓";
    color: var(--teal);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 5px;
}

/* Callout & Warning */
.ptf-callout {
    background: #f0faf9;
    border-left: 4px solid var(--teal);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.65;
}

.ptf-warning {
    background: #fef2f2;
    border-left: 4px solid #e53e3e;
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: #9b2c2c;
    line-height: 1.65;
}

/* Inline links inside policy/terms content blocks */
.ptf-block a { color: var(--teal); font-weight: 600; }
.ptf-block a:hover { text-decoration: underline; color: var(--teal-hover); }

/* Contact info box */
.ptf-contact-box {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}

.ptf-contact-box p {
    margin: 0 0 4px;
    font-size: 0.9rem;
}

.ptf-contact-box a { color: var(--teal); font-weight: 600; }
.ptf-contact-box a:hover { text-decoration: underline; }

/* ---- FAQ ---- */
.ptf-faq-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.ptf-cat {
    margin-bottom: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ptf-cat-heading {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--white);
    background: var(--navy);
    padding: 0.85rem 1.25rem;
    margin: 0;
}

.ptf-item { border-top: 1px solid var(--border); }
.ptf-item:first-of-type { border-top: none; }

.ptf-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    transition: background 0.15s, color 0.15s;
}

.ptf-q:hover { background: var(--light-bg); }
.ptf-q.ptf-open { color: var(--teal); background: var(--light-bg); }

.ptf-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.25s;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.ptf-q.ptf-open .ptf-icon {
    background: var(--teal);
    color: var(--white);
    transform: rotate(45deg);
}

.ptf-a {
    display: none;
    padding: 0.75rem 1.25rem 1rem 1.25rem;
    font-size: 0.91rem;
    color: var(--text-body);
    line-height: 1.72;
    background: var(--light-bg);
    border-top: 1px solid var(--border);
}

.ptf-a.ptf-open { display: block; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .ptf-hero-heading { font-size: 1.7rem; }
    .ptf-tabs-wrap { top: 72px; }
}

@media (max-width: 600px) {
    .ptf-hero { padding: 2rem 0 1.75rem; }
    .ptf-hero-heading { font-size: 1.45rem; }
    .ptf-hero-sub { font-size: 0.9rem; }
    .ptf-tabs { padding: 0 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ptf-tab { padding: 0.85rem 1rem; font-size: 0.82rem; }
    .ptf-content, .ptf-faq-content { padding: 1.5rem 1rem 3rem; }
    .ptf-block-heading { font-size: 0.98rem; }
    .ptf-cat-heading { font-size: 0.8rem; }
    .ptf-q { font-size: 0.88rem; padding: 0.9rem 1rem; }
    .ptf-a { padding: 0.65rem 1rem 0.9rem; font-size: 0.88rem; }
}
