/*=========================================================
privacy_terms.css
Shared stylesheet for Privacy_policy.html and Terms_of_use.html.
Replaces Privacy_policy.css and Terms_of_use.css.

Shared frame, header, sidebar, fonts and the base breadcrumb come from
layout.css / header_navigation.css / sidebar.css. Only what these two
text pages need is defined here.

NOTE: body{margin:0} is intentionally NOT set. The Counting page (the
layout reference) keeps the browser's default 8px body margin, which adds
to the 84px top margin of .page-layout. Resetting it made these pages sit
8px too close to the header.
=========================================================*/

:root{
    --ink:#0e2770;
    --ink-soft:#5B6478;
}

/*=========================================================
BASE
=========================================================*/
.privacy-page,
.terms-page{
    font-family:var(--smw-font-stack);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
    -webkit-text-size-adjust:100%;
    overflow-wrap:break-word;
}

:is(.privacy-page, .terms-page) :is(p, a, span, li, div){
    font-family:var(--smw-font-stack);
}

/*=========================================================
BREADCRUMB (base styles live in layout.css)
=========================================================*/
.breadcrumb{
    margin-bottom:20px;
    font-size:14px;
}

.breadcrumb-sep{
    margin:0 4px;
}

@media(max-width:480px){
    .breadcrumb{
        margin-bottom:16px;
        font-size:13px;
    }
}

/*=========================================================
HEADER: TITLE + LAST UPDATED
=========================================================*/
.privacy-header,
.terms-header{
    border-bottom:1px solid #E4E9F2;
    padding-bottom:20px;
    margin-bottom:28px;
}

.privacy-title,
.terms-title{
    font-family:var(--smw-font-stack);
    font-size:36px;
    font-weight:800;
    color:var(--ink);
    line-height:1.15;
    margin:0 0 8px;
}

/* Only used by the {% comment %}-ed "Last Updated" line in both templates. */
.privacy-updated,
.terms-updated{
    color:var(--ink-soft);
    font-size:15px;
    font-weight:600;
    margin:0;
}

@media(min-width:768px){
    .privacy-title,
    .terms-title{
        font-size:35px;
    }
}

@media(max-width:768px){
    .privacy-header,
    .terms-header{
        padding-bottom:16px;
        margin-bottom:22px;
    }
}

@media(max-width:480px){
    .privacy-title,
    .terms-title{
        font-size:28px;
    }

    .privacy-updated,
    .terms-updated{
        font-size:14px;
    }
}

/*=========================================================
BODY CONTENT
=========================================================*/
.privacy-section-heading,
.terms-section-heading{
    font-family:var(--smw-font-stack);
    font-size:22px;
    font-weight:800;
    color:var(--ink);
    line-height:1.3;
    margin:32px 0 14px;
    padding-top:20px;
    border-top:1px solid #EEF1F8;
}

.privacy-section-heading:first-of-type,
.terms-section-heading:first-of-type{
    margin-top:0;
    padding-top:0;
    border-top:none;
}

.privacy-paragraph,
.terms-paragraph{
    color:#000000;
    font-size:16px;
    line-height:1.7;
    margin:0 0 16px;
}

.privacy-paragraph strong,
.terms-paragraph strong{
    color:var(--ink);
    font-weight:500;
}

/* Brand name "SuperMathWorksheets.com": bold + site ink blue everywhere.
   Scoped to the page classes so it beats the generic paragraph <strong> rule above. */
:is(.privacy-page, .terms-page) .brand-name{
    color:#0e2770;
    font-weight:500;
}

/* "Contact Us" links (point to the contact page): blue + slightly bold.
   Scoped to this class so header, sidebar and breadcrumb links are unaffected. */
:is(.privacy-page, .terms-page) a.contact-link,
:is(.privacy-page, .terms-page) a.contact-link:visited{
    color:var(--color-blue, #2F5FEE);
    font-weight:600;
    text-decoration:none;
}

:is(.privacy-page, .terms-page) a.contact-link:hover,
:is(.privacy-page, .terms-page) a.contact-link:focus-visible{
    color:var(--color-blue-dark, #1E46C4);
    text-decoration:underline;
}

.privacy-list,
.terms-list{
    margin:0 0 16px;
    padding-left:22px;
    color:#000000;
    font-size:16px;
    line-height:1.75;
}

.privacy-list li,
.terms-list li{
    margin-bottom:8px;
}

.privacy-list li:last-child,
.terms-list li:last-child{
    margin-bottom:0;
}

@media(min-width:768px){
    .privacy-section-heading,
    .terms-section-heading{
        font-size:24px;
    }
}

@media(max-width:480px){
    .privacy-section-heading,
    .terms-section-heading{
        font-size:19px;
        margin:24px 0 10px;
        padding-top:16px;
    }

    .privacy-paragraph,
    .terms-paragraph{
        font-size:15px;
        line-height:1.65;
        margin-bottom:14px;
    }

    .privacy-list,
    .terms-list{
        font-size:15px;
        line-height:1.65;
        padding-left:20px;
    }
}

/* Global FAQ: extends existing policy-page layout; no separate CSS file. */
.faq-page .faq-questions{display:grid;gap:11px;margin:18px 0 27px;}
.faq-page .faq-question{border:1px solid #dce5f1;border-radius:12px;background:#fff;overflow:hidden;}
.faq-page .faq-question summary{list-style:none;cursor:pointer;position:relative;color:#0e2770;font-weight:700;padding:16px 45px 16px 17px;line-height:1.55;font-size:16px;}
.faq-page .faq-question summary::-webkit-details-marker{display:none;}
.faq-page .faq-question summary::after{content:'+';position:absolute;right:17px;top:50%;transform:translateY(-50%);font-size:25px;font-weight:400;color:#376ac5;}
.faq-page .faq-question[open] summary::after{content:'−';}
.faq-page .faq-question[open] summary{border-bottom:1px solid #e8edf5;}
.faq-page .faq-question summary:focus-visible{outline:3px solid #1f64d7;outline-offset:-3px;}
.faq-page .faq-question p{margin:0!important;padding:15px 17px 18px;line-height:1.75;}
.faq-page .faq-contact{margin-top:24px;}
@media(max-width:600px){.faq-page .faq-question summary{font-size:14px;padding:13px 39px 13px 13px;}.faq-page .faq-question p{padding:12px 13px 16px;}}
