/* ==========================================================
   LITTLE HERO — REFUND POLICY
   Dedicated legal-page styling
========================================================== */

body.legal-page {
    background: #fffaf1;
    color: #17374f;
}

.refund-policy-page main {
    position: relative;
    overflow: hidden;
}

/* ==========================================================
   HERO
========================================================== */

.legal-hero {
    position: relative;
    padding: 8.5rem 0 5.5rem;
    background:
        radial-gradient(circle at 15% 20%,
            rgba(245, 166, 35, 0.18),
            transparent 34%),
        linear-gradient(145deg,
            #fffaf1 0%,
            #fffdf8 52%,
            #f7f3e8 100%);
    border-bottom: 1px solid rgba(23, 55, 79, 0.08);
}

.legal-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(223, 75, 88, 0.06);
    filter: blur(4px);
    pointer-events: none;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #df4b58;
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #17374f;
}

.legal-hero-lead {
    max-width: 720px;
    margin: 1.5rem auto 0;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.75;
    color: #496174;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0 0;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(23, 55, 79, 0.06);
    color: #5d7180;
    font-size: 0.88rem;
    font-weight: 700;
}

/* ==========================================================
   MAIN DOCUMENT
========================================================== */

.legal-content {
    position: relative;
    padding: 4.5rem 0 6rem;
}

.legal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.32),
            rgba(255, 255, 255, 0));
    pointer-events: none;
}

.legal-document {
    position: relative;
    z-index: 1;
    max-width: 940px;
    margin: 0 auto;
}

/* ==========================================================
   POLICY SECTIONS
========================================================== */

.legal-section {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 2rem 2.1rem;
    border: 1px solid rgba(23, 55, 79, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 14px 40px rgba(23, 55, 79, 0.06),
        0 2px 8px rgba(23, 55, 79, 0.03);
}

.legal-section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    color: #17374f;
}

.legal-section h3 {
    margin: 1.8rem 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #274d66;
}

.legal-section p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.82;
    color: #4c6170;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 1rem 0 0;
    padding-left: 1.35rem;
}

.legal-section li {
    margin-bottom: 0.8rem;
    padding-left: 0.2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #4c6170;
}

.legal-section li:last-child {
    margin-bottom: 0;
}

.legal-section li::marker {
    color: #f5a623;
}

.legal-section strong {
    color: #17374f;
    font-weight: 800;
}

/* ==========================================================
   30-DAY REFUND HIGHLIGHT
========================================================== */

.refund-highlight-section {
    overflow: hidden;
    border: 1px solid rgba(245, 166, 35, 0.32);
    background:
        linear-gradient(145deg,
            rgba(255, 250, 241, 0.98),
            rgba(255, 255, 255, 0.98));
}

.refund-highlight-section::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.08);
    pointer-events: none;
}

.refund-policy-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    background: #f5a623;
    color: #17374f;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.refund-highlight-section h2,
.refund-highlight-section p {
    position: relative;
    z-index: 1;
}

/* ==========================================================
   REFUND REQUEST EMAIL CARD
========================================================== */

.refund-request-card {
    display: inline-flex;
    align-items: center;
    margin: 0.35rem 0 1.25rem;
    padding: 0.9rem 1.15rem;
    border: 1px solid rgba(23, 55, 79, 0.1);
    border-radius: 14px;
    background: #f8f5ed;
}

.refund-request-card a {
    color: #17374f;
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
}

.refund-request-card a:hover,
.refund-request-card a:focus-visible {
    color: #b83b48;
    text-decoration: underline;
}

/* ==========================================================
   POLICY LINKS
========================================================== */

.legal-section>p a {
    color: #b83b48;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: rgba(184, 59, 72, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-section>p a:hover {
    color: #8f2934;
    text-decoration-color: currentColor;
}

/* ==========================================================
   CONTACT SECTION
========================================================== */

.legal-contact-section {
    position: relative;
    overflow: hidden;
    border-color: rgba(245, 166, 35, 0.24);
    background:
        linear-gradient(145deg,
            rgba(255, 250, 241, 0.98),
            rgba(255, 255, 255, 0.98));
}

.legal-contact-section::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -100px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.08);
    pointer-events: none;
}

.legal-contact-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1.25rem;
    padding: 1.3rem 1.4rem;
    border-radius: 18px;
    background: #17374f;
    color: #ffffff;
}

.legal-contact-card strong {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.legal-contact-card a {
    color: #fff4d7;
    font-weight: 700;
    text-decoration: none;
    word-break: break-word;
}

.legal-contact-card a:hover,
.legal-contact-card a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */

.legal-page a {
    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        text-decoration-color 0.2s ease;
}

.legal-page a:focus-visible {
    outline: 3px solid rgba(245, 166, 35, 0.45);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .legal-hero {
        padding: 7.2rem 0 4.6rem;
    }

    .legal-content {
        padding: 3.8rem 0 5rem;
    }

    .legal-document {
        max-width: 820px;
    }

    .legal-section {
        padding: 1.8rem 1.75rem;
        border-radius: 22px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .legal-hero {
        padding: 6.6rem 0 3.8rem;
    }

    .legal-hero-content {
        text-align: left;
    }

    .legal-hero h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .legal-hero-lead {
        margin-left: 0;
        margin-right: 0;
        font-size: 1rem;
    }

    .legal-updated {
        justify-content: flex-start;
    }

    .legal-content {
        padding: 2.6rem 0 4rem;
    }

    .legal-section {
        margin-bottom: 1rem;
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .legal-section h2 {
        font-size: 1.45rem;
    }

    .legal-section h3 {
        font-size: 1rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 0.96rem;
        line-height: 1.72;
    }

    .refund-policy-badge {
        font-size: 0.7rem;
    }

    .refund-request-card {
        display: flex;
        width: 100%;
        padding: 0.9rem 1rem;
    }

    .legal-contact-card {
        padding: 1.1rem;
    }
}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

    .legal-hero {
        padding-top: 6.2rem;
    }

    .legal-section {
        padding: 1.35rem 1rem;
    }

    .legal-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.13em;
    }

    .refund-policy-badge {
        letter-spacing: 0.04em;
    }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .legal-page *,
    .legal-page *::before,
    .legal-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}