/* ==========================================================================
   INNOVAITION — LEGAL PAGES STYLESHEET (css/legal.css)
   Requires css/base.css loaded first.
   Shared across: cookie-policy.html, privacy-policy.html, terms.html
   Sections: Pastel Aurora Legal Hero, Clean Document Typography
   ========================================================================== */

body.legal-page,
body.blog-page,
body.privacy-policy {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* ===== 1. LEGAL / BLOG LIGHT HERO ===== */
.blog-hero-sec {
    position: relative;
    padding: 180px var(--layout-pad) 120px;
    background-color: #ffffff;
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url('../images/Hero section background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 10;
}

/* White bottom mask covers hero image below the 80px architectural floor line */
.blog-hero-sec .section-frame::before {
    display: none !important;
}

.blog-hero-sec .section-frame::after {
    background-color: #ffffff;
}

.blog-hero-sec .section-frame .sf-line.top,
.blog-hero-sec .section-frame .sf-line.bottom {
    display: block;
    background-color: rgba(0, 0, 0, 0.15);
}

.blog-hero-sec .section-frame .sf-dia {
    display: block;
    background-color: #000000;
}

.blog-hero-blur {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 182, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 235, 150, 0.15), transparent 50%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.blog-hero-title-group {
    margin: 0;
    font-weight: inherit;
}

.blog-hero-title {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 13vw, 11rem);
    font-weight: 700;
    line-height: 0.85;
    color: #222222;
    letter-spacing: -0.03em;
}

.blog-hero-title.left {
    text-align: left;
}

.blog-hero-title.right {
    text-align: right;
    margin-top: -10px;
}

/* ===== 2. LEGAL DOCUMENT CONTENT ===== */
.legal-page-wrap,
.policy-content {
    max-width: 800px;
    margin: 60px auto 120px;
    padding: 0 24px;
    color: #333333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-updated {
    margin-bottom: 32px;
    color: #555555;
    font-size: 0.95rem;
}

.legal-page-wrap h2,
.policy-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-top: 44px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.legal-page-wrap h3,
.policy-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-page-wrap p,
.policy-content p {
    margin-bottom: 20px;
}

.legal-page-wrap ul,
.legal-page-wrap ol,
.policy-content ul,
.policy-content ol {
    margin-bottom: 24px;
    padding-left: 22px;
}

.legal-page-wrap li,
.policy-content li {
    margin-bottom: 10px;
}

.legal-page-wrap a,
.policy-content a {
    color: #000000;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page-wrap a:hover,
.policy-content a:hover {
    opacity: 0.7;
}

#paper-shader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #0a0a0a;
    pointer-events: none;
}

/* ===== 3. MOBILE BREAKPOINTS ===== */
@media (max-width: 768px) {
    .blog-hero-sec {
        min-height: auto;
        padding: 120px 20px 40px;
    }

    .blog-hero-title {
        font-size: clamp(3.4rem, 16vw, 5.2rem);
        line-height: 0.95;
        letter-spacing: -0.02em;
    }

    .blog-hero-title.right {
        margin-top: -4px;
    }

    .legal-page-wrap,
    .policy-content {
        margin: 48px auto 80px;
        padding: 0 20px;
        font-size: 1rem;
    }

    .legal-page-wrap h2,
    .policy-content h2 {
        font-size: 1.35rem;
        margin-top: 36px;
    }
}