/* =========================================================
   GOODHOPE INSURE — SHARED LEGAL PAGES
   File: public/css/legal-pages.css

   Used for:
   - Terms of Service
   - Privacy Policy
   - Other legal/information pages

   Design:
   - Clean document layout
   - No cards / boxes / shadows
   - No dark hero block
   - Comfortable reading width
   - Fully responsive
========================================================= */


/* =========================================================
   1. PAGE WRAPPER
========================================================= */

.ghi-legal-page {
    width: 100%;
    margin: 0;
    padding: 0 0 60px;
    background: transparent;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   2. HERO / PAGE INTRO
   Intentionally simple — no background box
========================================================= */

.ghi-legal-hero {
    width: 100%;
    margin: 0;
    padding: 38px 20px 15px;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.ghi-legal-hero-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.ghi-legal-hero .ghi-legal-label,
.ghi-legal-hero .ghi-terms-label {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

.ghi-legal-hero h1 {
    margin: 0;
    padding: 0;
    color: #0b2942;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
}

.ghi-legal-updated {
    display: block;
    margin: 12px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}


/* =========================================================
   3. MAIN CONTENT AREA
   No card / no box
========================================================= */

.ghi-legal-container {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.ghi-legal-content {
    width: 100%;
    margin: 0;
    padding: 20px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}


/* =========================================================
   4. INTRODUCTION
========================================================= */

.ghi-legal-intro {
    margin: 0 0 32px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ghi-legal-intro h2 {
    position: relative;
    margin: 0 0 20px;
    padding: 0 0 10px;
    color: #0b2942;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
}

.ghi-legal-intro h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--brand-orange, #cf4715);
    border-radius: 5px;
}

.ghi-legal-intro p {
    margin: 0 0 15px;
    padding: 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
}

.ghi-legal-intro p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   5. MAIN SECTIONS
========================================================= */

.ghi-legal-section {
    margin: 0 0 35px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    scroll-margin-top: 120px;
}

.ghi-legal-section:last-child {
    margin-bottom: 0;
}


/* =========================================================
   6. H2 HEADINGS
========================================================= */

.ghi-legal-section > h2 {
    position: relative;
    margin: 0 0 18px;
    padding: 0 0 9px;
    color: #0b2942;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
}

.ghi-legal-section > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-orange, #cf4715);
    border-radius: 5px;
}


/* =========================================================
   7. H3 / H4 HEADINGS
========================================================= */

.ghi-legal-section h3,
.ghi-legal-subsection h3 {
    margin: 28px 0 14px;
    padding: 0;
    color: #0b2942;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
}

.ghi-legal-section h4,
.ghi-legal-subsection h4 {
    margin: 23px 0 12px;
    padding: 0;
    color: #1e3a52;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}


/* =========================================================
   8. SUBSECTIONS
========================================================= */

.ghi-legal-subsection {
    margin: 30px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.ghi-legal-subsection:first-child {
    margin-top: 0;
}


/* =========================================================
   9. PARAGRAPHS
========================================================= */

.ghi-legal-section p,
.ghi-legal-subsection p {
    margin: 0 0 15px;
    padding: 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
}

.ghi-legal-section p:last-child,
.ghi-legal-subsection p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   10. NORMAL UNORDERED LIST
========================================================= */

.ghi-legal-list {
    margin: 14px 0 22px;
    padding: 0;
    list-style: none;
}

.ghi-legal-list li {
    position: relative;
    margin: 0 0 13px;
    padding: 0 0 0 28px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.ghi-legal-list li:last-child {
    margin-bottom: 0;
}

.ghi-legal-list li::before {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 1px;
    width: auto;
    height: auto;
    background: transparent;
    color: #0ea5e9;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}


/* =========================================================
   11. NUMBERED LIST
========================================================= */

.ghi-legal-numbered-list {
    margin: 14px 0 22px;
    padding: 0 0 0 23px;
}

.ghi-legal-numbered-list li {
    margin: 0 0 13px;
    padding-left: 5px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.ghi-legal-numbered-list li:last-child {
    margin-bottom: 0;
}

.ghi-legal-numbered-list li::marker {
    color: #0b2942;
    font-weight: 700;
}


/* =========================================================
   12. NOTICE
   No box — simple text treatment
========================================================= */

.ghi-legal-notice {
    margin: 20px 0 28px;
    padding: 0 0 0 17px;
    background: transparent;
    border: 0;
    border-left: 3px solid var(--brand-orange, #cf4715);
    border-radius: 0;
    box-shadow: none;
}

.ghi-legal-notice p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   13. INFORMATION / HIGHLIGHT AREA
   Also kept box-free
========================================================= */

.ghi-legal-info-box,
.ghi-legal-highlight,
.ghi-legal-warning {
    margin: 22px 0;
    padding: 0 0 0 17px;
    background: transparent;
    border: 0;
    border-left: 3px solid #cbd5e1;
    border-radius: 0;
    box-shadow: none;
}

.ghi-legal-info-box p,
.ghi-legal-highlight p,
.ghi-legal-warning p {
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.ghi-legal-info-box p:last-child,
.ghi-legal-highlight p:last-child,
.ghi-legal-warning p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   14. LINKS
========================================================= */

.ghi-legal-page a {
    color: #0b6fa4;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ghi-legal-page a:hover {
    color: var(--brand-orange, #cf4715);
    text-decoration: underline;
}


/* =========================================================
   15. STRONG / EMPHASIS
========================================================= */

.ghi-legal-page strong {
    color: inherit;
    font-weight: 600;
}


/* Prevent generic page CSS from making legal paragraphs bold */

.ghi-legal-page p,
.ghi-legal-page li {
    font-weight: 400;
}


/* =========================================================
   16. DIVIDER
========================================================= */

.ghi-legal-divider {
    width: 100%;
    height: 1px;
    margin: 32px 0;
    padding: 0;
    border: 0;
    background: #e2e8f0;
}


/* =========================================================
   17. TABLE
========================================================= */

.ghi-legal-table-wrap {
    width: 100%;
    margin: 22px 0;
    overflow-x: auto;
}

.ghi-legal-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: transparent;
}

.ghi-legal-table th,
.ghi-legal-table td {
    padding: 13px 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.7;
}

.ghi-legal-table th {
    color: #0b2942;
    background: #f8fafc;
    font-weight: 700;
}

.ghi-legal-table td {
    color: #4b5563;
    font-weight: 400;
}


/* =========================================================
   18. CONTACT INFORMATION
   No card
========================================================= */

.ghi-legal-contact {
    margin: 25px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ghi-legal-contact h3 {
    margin: 0 0 12px;
    color: #0b2942;
    font-size: 19px;
    font-weight: 700;
}

.ghi-legal-contact p {
    margin: 5px 0;
    color: #4b5563;
    font-weight: 400;
}


/* =========================================================
   19. FOOTNOTE
========================================================= */

.ghi-legal-footnote {
    margin: 35px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}


/* =========================================================
   20. REMOVE POSSIBLE LEGACY CARD STYLING
========================================================= */

.ghi-legal-page .ghi-terms-intro,
.ghi-legal-page .ghi-terms-section,
.ghi-legal-page .ghi-terms-subsection,
.ghi-legal-page .ghi-terms-warning,
.ghi-legal-page .ghi-terms-highlight {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}


/* =========================================================
   21. TABLET
========================================================= */

@media (max-width: 992px) {

    .ghi-legal-hero {
        padding: 34px 20px 14px;
    }

    .ghi-legal-hero h1 {
        font-size: 31px;
    }

    .ghi-legal-container {
        width: calc(100% - 40px);
    }

    .ghi-legal-content {
        padding-top: 18px;
    }
}


/* =========================================================
   22. MOBILE
========================================================= */

@media (max-width: 768px) {

    .ghi-legal-page {
        padding-bottom: 40px;
    }

    .ghi-legal-hero {
        padding: 28px 16px 12px;
        text-align: left;
    }

    .ghi-legal-hero h1 {
        font-size: 27px;
    }

    .ghi-legal-hero .ghi-legal-label,
    .ghi-legal-hero .ghi-terms-label {
        font-size: 12px;
    }

    .ghi-legal-updated {
        margin-top: 9px;
        font-size: 13px;
    }

    .ghi-legal-container {
        width: calc(100% - 30px);
    }

    .ghi-legal-content {
        padding-top: 18px;
    }

    .ghi-legal-intro {
        margin-bottom: 28px;
    }

    .ghi-legal-intro h2 {
        font-size: 22px;
    }

    .ghi-legal-section {
        margin-bottom: 30px;
    }

    .ghi-legal-section > h2 {
        font-size: 21px;
    }

    .ghi-legal-section h3,
    .ghi-legal-subsection h3 {
        font-size: 18px;
    }

    .ghi-legal-intro p,
    .ghi-legal-section p,
    .ghi-legal-subsection p,
    .ghi-legal-list li,
    .ghi-legal-numbered-list li,
    .ghi-legal-notice p {
        font-size: 14px;
        line-height: 1.8;
    }

    .ghi-legal-list li {
        padding-left: 25px;
    }
}


/* =========================================================
   23. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ghi-legal-hero {
        padding: 24px 14px 10px;
    }

    .ghi-legal-hero h1 {
        font-size: 25px;
    }

    .ghi-legal-container {
        width: calc(100% - 24px);
    }

    .ghi-legal-content {
        padding-top: 15px;
    }

    .ghi-legal-intro h2 {
        font-size: 21px;
    }

    .ghi-legal-section > h2 {
        font-size: 20px;
    }

    .ghi-legal-section > h2::after,
    .ghi-legal-intro h2::after {
        width: 35px;
    }

    .ghi-legal-section {
        margin-bottom: 27px;
    }
}
/* =========================================================
   COOKIE TYPE GROUPS
========================================================= */

.ghi-cookie-list {
    margin-top: 18px;
}

.ghi-cookie-list > li {
    margin-bottom: 24px;
}

.ghi-cookie-list > li:last-child {
    margin-bottom: 0;
}

.ghi-cookie-item h4 {
    margin: 0 0 9px;
    padding: 0;
    color: #0b2942;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.ghi-cookie-item p {
    margin: 0 0 7px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.ghi-cookie-item p:last-child {
    margin-bottom: 0;
}

.ghi-cookie-item p strong {
    color: #1e293b;
    font-weight: 700;
}


/* Mobile */

@media (max-width: 768px) {

    .ghi-cookie-list > li {
        margin-bottom: 21px;
    }

    .ghi-cookie-item h4,
    .ghi-cookie-item p {
        font-size: 14px;
    }
}