/* =====================================================================
   policy.css  -  Genesis IT Solutions legal pages
   Used by: terms-and-conditions.php, privacy-policy.php, refund-policy.php
   Matches the green theme of consult.php / the site header (#1faa59).
   Everything is scoped under .lp-* so it cannot clash with styles.css
   or Bootstrap.
   ===================================================================== */

:root {
    --lp-green:      #1faa59;   /* brand green (theme-color)            */
    --lp-green-mid:  #35a854;   /* secondary green used on CTA text     */
    --lp-green-deep: #0e8a45;   /* big headings (ABOUT US style)        */
    --lp-forest:     #0a3d24;   /* dark panel                           */
    --lp-forest-2:   #0f5a35;
    --lp-mint:       #eaf9f0;   /* hero background                      */
    --lp-mint-2:     #dff5e5;   /* soft panels (same as CTA block)      */
    --lp-circle:     #d2f0dd;   /* big hero circle                      */
    --lp-ink:        #14201a;   /* headings                             */
    --lp-text:       #46554c;   /* body copy                            */
    --lp-muted:      #7a8a80;
    --lp-line:       #d7ebdf;
    --lp-white:      #ffffff;
    --lp-radius:     18px;
    --lp-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.lp-hero,
.lp-page { font-family: var(--lp-font); }

/* ---------------------------------------------------------------- Hero */
.lp-hero {
    position: relative;
    overflow: hidden;
    background: var(--lp-mint);
    padding: 72px 0 84px;
}
.lp-hero::before {                      /* the large circle from consult.php */
    content: "";
    position: absolute;
    left: -190px;
    top: -170px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: var(--lp-circle);
}
.lp-hero .container { position: relative; z-index: 1; }

.lp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
}
.lp-hero__badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--lp-white);
    color: var(--lp-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 22px rgba(31, 170, 89, .18);
    margin-bottom: 22px;
}
.lp-hero h1 {
    margin: 0;
    font-family: var(--lp-font);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--lp-green-deep);
}
.lp-hero__rule {
    width: 64px;
    height: 5px;
    border-radius: 5px;
    background: var(--lp-green);
    margin: 22px 0 0;
}
.lp-hero__text p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--lp-text);
    max-width: 52ch;
}
.lp-hero__updated {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-ink);
}
.lp-hero__updated i { color: var(--lp-green); }

/* ---------------------------------------------------------- Page body */
.lp-page {
    background: var(--lp-white);
    padding: 56px 0 90px;
}
.lp-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

/* ------------------------------------------------------------ Sidebar */
.lp-side {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.lp-box {
    background: var(--lp-mint);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-radius);
    padding: 20px 20px 18px;
}
.lp-box > summary,
.lp-box__title {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 16px;
    color: var(--lp-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}
.lp-box > summary::-webkit-details-marker { display: none; }
.lp-box > summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: var(--lp-green);
    transition: transform .2s;
}
.lp-box[open] > summary::after { transform: rotate(180deg); }
.lp-box__list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    max-height: 56vh;
    overflow-y: auto;
}
.lp-box__list li { margin: 0; padding: 0; }
.lp-box__list a {
    display: block;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--lp-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s;
}
.lp-box__list a:hover { background: var(--lp-white); color: var(--lp-green-deep); }
.lp-box__list a.is-active {
    background: var(--lp-white);
    color: var(--lp-green-deep);
    font-weight: 700;
    border-left-color: var(--lp-green);
}

/* the 3-way policy switcher */
.lp-switch { display: grid; gap: 8px; margin-top: 14px; }
.lp-switch a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-ink);
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.lp-switch a i { color: var(--lp-green); width: 18px; text-align: center; }
.lp-switch a:hover { border-color: var(--lp-green); color: var(--lp-green-deep); }
.lp-switch a[aria-current="page"] {
    background: var(--lp-green);
    border-color: var(--lp-green);
    color: var(--lp-white);
}
.lp-switch a[aria-current="page"] i { color: var(--lp-white); }

/* ----------------------------------------------------------- Document */
.lp-doc {
    min-width: 0;
    background: var(--lp-white);
    border: 1px solid var(--lp-line);
    border-radius: 24px;
    padding: clamp(24px, 4.5vw, 52px);
    box-shadow: 0 18px 50px rgba(14, 138, 69, .08);
}
.lp-doc .lp-notice {
    background: var(--lp-mint-2);
    border-left: 5px solid var(--lp-green);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 0 0 18px;
    color: var(--lp-ink);
    font-size: 16px;
    line-height: 1.75;
}
.lp-doc section {
    padding: 28px 0;
    border-bottom: 1px solid var(--lp-line);
    scroll-margin-top: 100px;
}
.lp-doc section:last-child { border-bottom: 0; padding-bottom: 0; }

.lp-doc h2 {
    position: relative;
    margin: 0 0 14px;
    padding-left: 18px;
    font-family: var(--lp-font);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: -.01em;
    color: var(--lp-ink);
}
.lp-doc h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 5px;
    border-radius: 5px;
    background: var(--lp-green);
}
.lp-doc p,
.lp-doc li {
    font-family: var(--lp-font);
    font-size: 16px;
    line-height: 1.85;
    color: var(--lp-text);
}
.lp-doc p { margin: 0 0 14px; max-width: 78ch; }
.lp-doc strong { color: var(--lp-ink); font-weight: 700; }

.lp-doc ul,
.lp-doc ol { margin: 6px 0 16px; padding-left: 22px; max-width: 78ch; }
.lp-doc li { margin: 6px 0; padding-left: 4px; }
.lp-doc ul li::marker { color: var(--lp-green); }
.lp-doc ol li::marker { color: var(--lp-green-deep); font-weight: 700; }

.lp-doc a {
    color: var(--lp-green-deep);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(31, 170, 89, .4);
    text-underline-offset: 3px;
}
.lp-doc a:hover { color: var(--lp-green); text-decoration-color: var(--lp-green); }

/* contact block: dark green panel, like .green-panel on consult.php */
.lp-doc .lp-contact {
    margin-top: 16px;
    padding: 26px 28px;
    border-radius: var(--lp-radius);
    background: linear-gradient(135deg, var(--lp-forest), var(--lp-forest-2));
    color: #e6f7ec;
}
.lp-doc .lp-contact p { margin: 6px 0; color: #e6f7ec; max-width: none; }
.lp-doc .lp-contact strong { color: var(--lp-white); font-size: 18px; }
.lp-doc .lp-contact a {
    color: #9af0bd;
    text-decoration-color: rgba(154, 240, 189, .45);
}
.lp-doc .lp-contact a:hover { color: var(--lp-white); }

/* ---------------------------------------------------------- Focus/RM */
.lp-page a:focus-visible,
.lp-page summary:focus-visible {
    outline: 3px solid var(--lp-green);
    outline-offset: 3px;
    border-radius: 6px;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-box > summary::after { transition: none; }
}

/* -------------------------------------------------------- Responsive */
@media (max-width: 991px) {
    .lp-hero { padding: 52px 0 60px; }
    .lp-hero::before { width: 380px; height: 380px; left: -150px; top: -130px; }
    .lp-hero__grid { grid-template-columns: 1fr; gap: 22px; }
    .lp-hero__text p { font-size: 16px; }

    .lp-layout { grid-template-columns: 1fr; gap: 24px; }
    .lp-side { position: static; }
    .lp-box__list { max-height: 320px; }
}
@media (max-width: 575px) {
    .lp-page { padding: 32px 0 60px; }
    .lp-doc { border-radius: 16px; }
    .lp-doc h2 { font-size: 19px; }
    .lp-doc p, .lp-doc li { font-size: 15px; }
    .lp-doc .lp-contact { padding: 20px; }
}
