/* ============================================
   LEGAL PAGES SHARED STYLES
   Privacy Policy & Terms and Conditions
   BloomLab Design System
   ============================================ */

:root {
    --lp-brand-primary: #2D6A4F;
    --lp-brand-accent: #40916C;
    --lp-brand-light: #74C69D;
    --lp-brand-luminous: #52B788;
    --lp-text-primary: #1B4332;
    --lp-text-secondary: #2D6A4F;
    --lp-bg-clinical: #FFFFFF;
    --lp-bg-pearl: #F8FAF9;
    --lp-bg-deep: #1B4332;
    --white: #FFFFFF;

    --bloom-standard-width: 1200px;
    --bloom-standard-radius: 64px;
    --bloom-transition: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --bloom-radius-lg: 32px;
    --bloom-radius-xl: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: var(--lp-bg-clinical);
    color: var(--lp-text-primary);
    overflow-x: hidden;
}

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

.lp-hero-outer {
    width: 100%;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, var(--lp-bg-pearl) 0%, rgba(116, 198, 157, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.lp-hero-outer::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: lp-float 15s infinite alternate ease-in-out;
}

@keyframes lp-float {
    from { transform: translate(0, 0); }
    to { transform: translate(-15px, 15px) scale(1.02); }
}

.lp-hero-wrapper {
    width: 100%;
    max-width: var(--bloom-standard-width);
    padding: var(--bloom-hero-padding-top, 80px) var(--bloom-side-padding) 60px;
    position: relative;
    z-index: 1;
}

.lp-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lp-badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.lp-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(27, 67, 50, 0.06);
    color: var(--lp-text-secondary);
    font-weight: 700;
    font-size: 13px;
}

.lp-badge-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.lp-headline {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    color: var(--lp-text-primary);
}

.lp-headline span {
    color: var(--lp-brand-accent);
}

.lp-subheadline {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.85;
    color: var(--lp-text-secondary);
}

/* ============================================
   CONTENT SECTION
   ============================================ */

.lp-content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px var(--bloom-side-padding) 40px;
}

.lp-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Policy Block */
.lp-policy-block {
    background: var(--lp-bg-pearl);
    border-radius: 32px;
    padding: clamp(30px, 5vw, 50px);
    border: 1px solid rgba(27, 67, 50, 0.04);
    transition: var(--bloom-transition);
}

.lp-policy-block:hover {
    border-color: rgba(64, 145, 108, 0.15);
    box-shadow: 0 20px 50px rgba(45, 106, 79, 0.06);
    transform: translateY(-4px);
}

.lp-policy-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.lp-policy-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--lp-bg-deep);
    color: var(--white);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
}

.lp-policy-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--lp-text-primary);
}

.lp-policy-body ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-policy-body ul li {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
    padding-left: 28px;
    position: relative;
    color: var(--lp-text-primary);
    opacity: 0.88;
}

.lp-policy-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--lp-brand-light);
    border-radius: 50%;
}

.lp-policy-body ul li b {
    color: var(--lp-text-primary);
    font-weight: 800;
}

/* Contact Block */
.lp-contact-block .lp-policy-body {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(27, 67, 50, 0.05);
}

.lp-contact-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
    color: var(--lp-text-primary);
    opacity: 0.88;
}

.lp-company-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--lp-text-primary) !important;
    opacity: 1 !important;
    margin-bottom: 8px;
}

.lp-contact-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.lp-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--lp-bg-pearl);
    border: 1.5px solid rgba(27, 67, 50, 0.08);
    border-radius: 100px;
    color: var(--lp-text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--bloom-transition);
}

.lp-contact-links a:hover {
    background: var(--lp-text-primary);
    color: var(--white);
    border-color: var(--lp-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 67, 50, 0.15);
}

.lp-contact-links a:hover svg {
    stroke: var(--white);
}

.lp-contact-links svg {
    width: 18px;
    height: 18px;
    stroke: var(--lp-text-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Highlight Block (Section 4 T&C - Final Sale) */
.lp-highlight-box {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    border: 2px solid rgba(64, 145, 108, 0.2);
    border-left: 5px solid var(--lp-brand-accent);
}

.lp-highlight-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 700;
    color: var(--lp-text-primary);
}

.lp-highlight-box p + p {
    margin-top: 4px;
}

/* Agreement Notice */
.lp-agreement-notice {
    background: var(--lp-bg-deep);
    border-radius: 32px;
    padding: clamp(30px, 5vw, 50px);
    position: relative;
    overflow: hidden;
}

.lp-agreement-notice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.lp-agreement-notice p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 700;
    color: var(--white);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ============================================
   CTA SECTION
   ============================================ */

.lp-cta-section {
    max-width: var(--bloom-standard-width);
    margin: 0 auto 80px;
    padding: 0 var(--bloom-side-padding);
}

.lp-cta-wrapper {
    background: var(--lp-text-primary);
    border-radius: var(--bloom-standard-radius);
    padding: clamp(50px, 8vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-cta-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.lp-cta-wrapper h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.04em;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.lp-cta-wrapper p {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.lp-cta-btn {
    display: inline-flex;
    padding: 20px 50px;
    background: var(--white);
    color: var(--lp-text-primary);
    text-decoration: none;
    font-weight: 800;
    border-radius: 100px;
    font-size: 1.05rem;
    transition: var(--bloom-transition);
    position: relative;
    z-index: 1;
}

.lp-cta-btn:hover {
    background: var(--lp-brand-luminous);
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(82, 183, 136, 0.3);
}

/* ============================================
   SCROLL-TO-TOP
   ============================================ */

.lp-scroll-top {
    --lp-scroll-top-bottom: 88px;
    --lp-scroll-top-size: 50px;
    position: fixed;
    bottom: var(--lp-scroll-top-bottom);
    right: max(20px, env(safe-area-inset-right));
    z-index: 9998;
    width: var(--lp-scroll-top-size);
    height: var(--lp-scroll-top-size);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--lp-text-primary);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lp-scroll-top:hover,
.lp-scroll-top:focus {
    background: var(--lp-brand-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(64, 145, 108, 0.35);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

.lp-scroll-top:focus:not(:focus-visible) {
    outline: none;
}

.lp-scroll-top svg {
    width: 24px;
    height: 24px;
}

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

@media (max-width: 991px) {
    .lp-hero-outer::before { display: none; }
    .lp-headline { font-size: clamp(2.2rem, 6vw, 3rem); }
    .lp-subheadline { font-size: 1.1rem; }

    .lp-policy-block { border-radius: 24px; padding: 28px 22px; }
    .lp-policy-header { gap: 14px; }
    .lp-policy-number { width: 44px; height: 44px; min-width: 44px; font-size: 0.9rem; border-radius: 12px; }
    .lp-policy-header h2 { font-size: 1.3rem; }

    .lp-contact-block .lp-policy-body { padding: 22px 18px; }
    .lp-contact-links { flex-direction: column; }

    .lp-highlight-box { padding: 22px 18px; }
    .lp-agreement-notice { border-radius: 24px; padding: 28px 22px; }

    .lp-cta-wrapper { border-radius: 40px; padding: 50px 25px; }
    .lp-cta-btn { padding: 18px 40px; font-size: 1rem; }
}

@media (max-width: 600px) {
    .lp-policy-body ul li { font-size: 0.95rem; }
    .lp-contact-info p { font-size: 0.95rem; }
    .lp-highlight-box p { font-size: 1rem; }
    .lp-agreement-notice p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .lp-hero-wrapper { padding: 40px 20px; }
    .lp-content-section { padding: 40px 16px; }
    .lp-cta-section { padding: 0 16px; }
}

@media (max-width: 767px) {
    .lp-scroll-top {
        --lp-scroll-top-bottom: 92px;
        --lp-scroll-top-size: 52px;
    }
}
