/* ================================================================
   LEGAL & CONTACT PAGES — Green Wealth
   legal-pages.css  v1.0
   Covers: Terms & Conditions, Privacy Policy, Contact Us
   ================================================================ */

.gw-legal-page *,
.gw-contact-page *,
.gw-legal-page *::before,
.gw-legal-page *::after,
.gw-contact-page *::before,
.gw-contact-page *::after { box-sizing: border-box; }

.gw-legal-page,
.gw-contact-page {
    font-family: 'Open Sans', 'Lato', sans-serif;
    color: #2d2d2d;
    line-height: 1.7;
}

.gw-legal-page img,
.gw-contact-page img { max-width: 100%; display: block; }

.gw-legal-page a,
.gw-contact-page a { text-decoration: none; color: #6ab43e; transition: color .2s; }

.gw-legal-page a:hover,
.gw-contact-page a:hover { color: #3e8c22; }

.gw-legal-page h1,
.gw-legal-page h2,
.gw-legal-page h3,
.gw-legal-page h4,
.gw-contact-page h1,
.gw-contact-page h2,
.gw-contact-page h3,
.gw-contact-page h4 { color: #111; margin-top: 0; line-height: 1.3; }

.gw-legal-page p,
.gw-contact-page p { color: #333; margin-top: 0; }

/* ── Layout helpers ── */
.gw-wrap     { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.gw-wrap-sm  { max-width: 900px;  margin: 0 auto; padding: 0 30px; }

/* ================================================================
   READING PROGRESS BAR
   ================================================================ */
.gw-progress-wrap {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(106,180,62,.12);
    z-index: 60;
}
.gw-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6ab43e, #3e8c22);
    transition: width .1s linear;
}

/* ================================================================
   SHARED HERO
   ================================================================ */
.gw-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 70px 0 56px;
    overflow: hidden;
}
.gw-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(20,50,5,.85) 0%, rgba(42,96,16,.74) 100%);
}
.gw-hero::after {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(180,240,120,.22) 0%, rgba(180,240,120,0) 70%);
    pointer-events: none;
}
.gw-hero-inner {
    position: relative;
    width: 100%;
}
.gw-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.gw-breadcrumb a { color: rgba(255,255,255,.7); }
.gw-breadcrumb a:hover { color: #fff; }
.gw-breadcrumb i { font-size: 10px; color: rgba(255,255,255,.45); }
.gw-hero h1 {
    color: #fff !important;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin: 0 0 14px;
    font-family: 'MontserratRegular', 'Montserrat', sans-serif;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.gw-hero p {
    color: rgba(255,255,255,.82) !important;
    font-size: 16px;
    max-width: 620px;
    margin: 0;
}
.gw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(106,180,62,.25);
    border: 1px solid rgba(106,180,62,.5);
    color: #b8f584 !important;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

/* ================================================================
   LEGAL CONTENT LAYOUT (Terms + Privacy)
   ================================================================ */
.gw-legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 50px;
    padding: 60px 0 80px;
    align-items: start;
}

/* ── Sticky TOC Sidebar ── */
.gw-toc {
    position: sticky;
    top: 104px;
    background: #f8fef3;
    border: 1.5px solid #d4edba;
    border-radius: 14px;
    padding: 24px 18px;
    box-shadow: 0 4px 18px rgba(62,140,34,.06);
}
.gw-toc-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #3e8c22;
    margin: 0 0 14px;
    padding: 0 4px;
}
.gw-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: gw-toc-counter;
}
.gw-toc ol li {
    counter-increment: gw-toc-counter;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.4;
}
.gw-toc ol li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .18s, color .18s, transform .18s;
}
.gw-toc ol li a::before {
    content: counter(gw-toc-counter, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #7bb857;
    background: #eaf6df;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, color .18s;
}
.gw-toc ol li a:hover {
    color: #3e8c22;
    background: #eef9e3;
    transform: translateX(2px);
}
.gw-toc ol li a.is-active {
    color: #1e4a0a;
    background: #dcf3c6;
    font-weight: 700;
}
.gw-toc ol li a.is-active::before {
    background: #6ab43e;
    color: #fff;
}

/* ── Legal Article ── */
.gw-legal-article {
    min-width: 0;
}

/* Meta bar (last updated + reading time) */
.gw-legal-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: #f4fcee;
    border-left: 4px solid #6ab43e;
    border-radius: 0 8px 8px 0;
    margin-bottom: 36px;
    font-size: 13px;
    color: #3d3d3d;
}
.gw-legal-meta i { color: #6ab43e; margin-right: 5px; }
.gw-legal-meta strong { color: #111; }

/* Section blocks */
.gw-legal-section {
    margin-bottom: 46px;
    scroll-margin-top: 100px;
}
.gw-legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111 !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaf6df;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gw-legal-section h2 .gw-sec-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #eaf6df, #cdeaa8);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(106,180,62,.18);
}
.gw-legal-section h2 .gw-sec-icon i {
    font-size: 14px;
    color: #6ab43e;
}
.gw-legal-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222 !important;
    margin: 22px 0 10px;
}
.gw-legal-section p {
    font-size: 15px;
    color: #333 !important;
    line-height: 1.8;
    margin-bottom: 14px;
}
.gw-legal-section ul {
    margin: 0 0 16px 0;
    padding: 0 0 0 4px;
    list-style: none;
}
.gw-legal-section ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 14.5px;
    color: #333;
    line-height: 1.7;
}
.gw-legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 14px;
    width: 8px; height: 8px;
    background: #6ab43e;
    border-radius: 50%;
}

/* Highlight / callout box */
.gw-callout {
    background: #fff8e6;
    border: 1.5px solid #f5d676;
    border-left: 4px solid #d4a017;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 3px 14px rgba(212,160,23,.08);
}
.gw-callout > i {
    color: #d4a017;
    font-size: 15px;
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(212,160,23,.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.gw-callout p { margin: 0; font-size: 14px; color: #6a4800 !important; line-height: 1.65; }

.gw-callout-green {
    background: #f0fbe8;
    border-color: #a8d87a;
    border-left-color: #3e8c22;
    box-shadow: 0 3px 14px rgba(62,140,34,.08);
}
.gw-callout-green > i { color: #3e8c22; background: rgba(62,140,34,.14); }
.gw-callout-green p { color: #1e4a0a !important; }

/* Scroll-reveal (JS toggles .is-visible via IntersectionObserver) */
.gw-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}
.gw-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */

/* ── Contact grid ── */
.gw-contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    padding: 64px 0 80px;
    align-items: start;
}

/* ── Contact Form ── */
.gw-contact-form-wrap {
    background: #fff;
    border: 1.5px solid #e4ead9;
    border-radius: 18px;
    padding: 38px 36px 40px;
    box-shadow: 0 6px 30px rgba(0,0,0,.06);
}
.gw-contact-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #111 !important;
    margin-bottom: 6px;
}
.gw-contact-form-sub {
    font-size: 14px;
    color: #4d4d4d !important;
    margin-bottom: 28px;
}
.gw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.gw-form-group {
    margin-bottom: 20px;
}
.gw-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
}
.gw-form-group label span { color: #e05252; }
.gw-form-group input,
.gw-form-group select,
.gw-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #dde8d0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #222;
    background: #fafffe;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.gw-form-group input:focus,
.gw-form-group select:focus,
.gw-form-group textarea:focus {
    border-color: #6ab43e;
    box-shadow: 0 0 0 3px rgba(106,180,62,.12);
    background: #fff;
}
.gw-form-group textarea { resize: vertical; min-height: 140px; }

/* Submit button */
.gw-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #6ab43e;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background .25s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(106,180,62,.35);
}
.gw-submit-btn:hover {
    background: #539230;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(106,180,62,.38);
    color: #fff !important;
}

/* Success message */
.gw-form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fbe8;
    border: 1.5px solid #a8d87a;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 22px;
    font-size: 14px;
    color: #1e4a0a;
}
.gw-form-success i { font-size: 20px; color: #3e8c22; }

/* ── Contact Sidebar ── */
.gw-contact-sidebar { display: flex; flex-direction: column; gap: 20px; }

.gw-contact-card {
    background: #fff;
    border: 1.5px solid #e4ead9;
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 3px 14px rgba(0,0,0,.05);
    transition: box-shadow .25s, border-color .25s;
}
.gw-contact-card:hover {
    box-shadow: 0 8px 28px rgba(106,180,62,.14);
    border-color: #b6dfaa;
}
.gw-contact-card-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #eaf6df, #c8e9a8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.gw-contact-card-icon i { font-size: 18px; color: #3e8c22; }
.gw-contact-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111 !important;
}
.gw-contact-card p {
    font-size: 13.5px;
    color: #4d4d4d !important;
    margin: 0 0 10px;
    line-height: 1.6;
}
.gw-contact-card a {
    font-size: 14px;
    font-weight: 600;
    color: #6ab43e !important;
}
.gw-contact-card a:hover { color: #3e8c22 !important; }

/* Response time badge */
.gw-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eaf6df;
    color: #3e8c22;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-top: 6px;
}

/* Social links */
.gw-social-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}
.gw-social-row a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #eaf6df;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3e8c22 !important;
    font-size: 15px;
    transition: background .2s, transform .2s;
}
.gw-social-row a:hover {
    background: #6ab43e;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ── FAQ quick section ── */
.gw-contact-faq { padding: 0 0 70px; }
.gw-contact-faq-title {
    font-size: 26px;
    font-weight: 700;
    color: #111 !important;
    text-align: center;
    margin-bottom: 8px;
}
.gw-contact-faq-sub {
    text-align: center;
    color: #4d4d4d !important;
    font-size: 15px;
    margin-bottom: 36px;
}
.gw-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}
.gw-faq-item {
    background: #fff;
    border: 1.5px solid #e4ead9;
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.gw-faq-item:hover {
    border-color: #6ab43e;
    box-shadow: 0 4px 18px rgba(106,180,62,.1);
}
.gw-faq-item.is-open {
    border-color: #6ab43e;
    box-shadow: 0 6px 22px rgba(106,180,62,.14);
}
.gw-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.gw-faq-question span {
    font-size: 14.5px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.gw-faq-question span i { color: #6ab43e; margin-top: 2px; font-size: 13px; flex-shrink: 0; }
.gw-faq-chevron {
    color: #7bb857 !important;
    font-size: 13px !important;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.gw-faq-item.is-open .gw-faq-chevron { transform: rotate(180deg); }
.gw-faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s ease;
}
.gw-faq-item.is-open .gw-faq-answer {
    max-height: 320px;
    opacity: 1;
}
.gw-faq-answer p {
    font-size: 13.5px;
    color: #3d3d3d !important;
    margin: 0;
    padding: 0 20px 20px 46px;
    line-height: 1.7;
}

/* ── Bottom CTA ── */
.gw-bottom-cta {
    background: linear-gradient(135deg, #2a6010 0%, #3e8c22 100%);
    padding: 60px 30px;
    text-align: center;
}
.gw-bottom-cta h2 { color: #fff !important; font-size: clamp(22px,3.5vw,32px); margin-bottom: 12px; }
.gw-bottom-cta p  { color: rgba(255,255,255,.82) !important; font-size: 16px; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Shared button styles */
.gw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s;
    cursor: pointer;
    border: none;
}
.gw-btn-green {
    background: #6ab43e;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(106,180,62,.35);
}
.gw-btn-green:hover {
    background: #539230;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(106,180,62,.38);
    color: #fff !important;
}
.gw-btn-white {
    background: #fff;
    color: #214c07 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.gw-btn-white:hover {
    background: #f3f3f3;
    transform: translateY(-2px);
    color: #214c07 !important;
}
.gw-btn-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .gw-legal-layout  { grid-template-columns: 220px 1fr; gap: 34px; }
    .gw-contact-layout{ grid-template-columns: 1fr; }
    .gw-contact-sidebar { flex-direction: row; flex-wrap: wrap; }
    .gw-contact-card  { flex: 1 1 200px; }
}
@media (max-width: 860px) {
    .gw-legal-layout  { grid-template-columns: 1fr; }
    .gw-toc           { position: static; margin-bottom: 30px; }
    .gw-faq-grid      { grid-template-columns: 1fr; }
    .gw-form-row      { grid-template-columns: 1fr; }
    .gw-contact-layout{ padding: 40px 0 60px; }
    .gw-legal-layout  { padding: 40px 0 60px; }
}
@media (max-width: 540px) {
    .gw-wrap, .gw-wrap-sm { padding: 0 18px; }
    .gw-contact-form-wrap  { padding: 26px 20px 28px; }
    .gw-contact-sidebar    { flex-direction: column; }
    .gw-hero               { min-height: 220px; padding: 52px 0 42px; }
    .gw-legal-section h2   { font-size: 17px; }
}
