/* ============================================
   GRROWX — LEGAL PAGES (Privacy, Terms, Cookie)
   Clean, readable, professional.
   ============================================ */

:root {
    --blue: #3BB4D9;
    --sky: #4CC9E8;
    --dark: #1B1B2F;
    --red: #E84855;
    --green: #10B981;
    --cream: #F8FAFB;
    --white: #FFFFFF;
    --txt: #1B1B2F;
    --gray: #5A6B7A;
    --border: #E2E8F0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--cream);
    color: var(--txt);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- HEADER ---- */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: .7rem 1.5rem;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 2px 12px rgba(0,0,0,.03);
}

nav {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

/* ============================================
   LOGO — WITH SCROLL ANIMATION (Same as Home)
   Replace your existing .logo, .logo-icon, .logo-text CSS with this
   ============================================ */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
    overflow: hidden;
    position: relative;
}

/* Full Logo (text version) — visible by default */
.logo-full {
    height: 38px;
    width: auto;
    max-width: 250px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
}

/* Symbol Logo (the X) — hidden by default */
.logo-symbol {
    height: 38px;
    width: auto;
    max-width: 0;
    opacity: 0;
    transform: rotate(-180deg);
    margin-left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When scrolled: hide full logo */
header.scrolled .logo-full {
    max-width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

/* When scrolled: show X symbol with spin */
header.scrolled .logo-symbol {
    max-width: 50px;
    opacity: 1;
    transform: rotate(0deg);
    margin-right: 15px;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo {
        height: 40px;
    }

    .logo-full {
        height: 24px;
        max-width: 200px;
    }

    header.scrolled .logo-full {
        max-width: 0;
        opacity: 0;
        margin: 0;
    }
}

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-link {
    text-decoration: none; color: var(--gray);
    font-weight: 700; font-size: .88rem; transition: color .2s;
}
.nav-link:hover { color: var(--txt); }

.header-cta {
    display: inline-block; text-decoration: none;
    padding: .6rem 1.2rem; background: var(--dark); color: #fff;
    font-weight: 800; font-size: .78rem;
    box-shadow: 3px 3px 0 var(--red); transition: all .15s; letter-spacing: .3px;
}
.header-cta:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--red); }

/* ---- EYEBROW ---- */
.eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 800;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--blue); padding: .35rem .9rem;
    background: rgba(59,180,217,.07); border-radius: 50px;
    border: 1px solid rgba(59,180,217,.12); margin-bottom: 1rem;
}

/* ============================================
   HERO
   ============================================ */
.legal-hero {
    padding: 140px 0 3rem;
    background: linear-gradient(180deg, #E8F7FB 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800; line-height: 1.12;
    letter-spacing: -.4px; margin-bottom: .5rem;
}

.hero-meta {
    font-size: .9rem; color: var(--gray); font-weight: 600;
}

/* ============================================
   LEGAL CONTENT
   ============================================ */
.legal-body {
    padding: 3.5rem 0 5rem;
    background: var(--white);
}

.legal-content {
    max-width: 760px;
}

.legal-block {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.legal-block h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--txt);
    margin-bottom: 1rem;
    letter-spacing: -.2px;
}

.legal-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--txt);
    margin-top: 1.5rem;
    margin-bottom: .6rem;
}

.legal-block p {
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: .85rem;
}

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

.legal-block strong { color: var(--txt); font-weight: 700; }

.legal-block a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(59,180,217,.3);
    transition: all .2s;
}
.legal-block a:hover { color: var(--dark); border-color: var(--dark); }

.legal-block ul {
    list-style: none;
    padding: 0;
    margin: .75rem 0;
}

.legal-block ul li {
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.75;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: .4rem;
}

.legal-block ul li::before {
    content: '';
    position: absolute;
    left: 0; top: .7rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

/* Contact Info Box */
.contact-info {
    padding: 1.5rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 1rem;
}

.contact-info p {
    color: var(--gray);
    font-size: .92rem;
    margin-bottom: .3rem;
}

.contact-info p:last-child { margin-bottom: 0; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #000; color: #fff;
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.05);
}

.footer-inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 800; }
.footer-logo .logo-icon { width: 38px; height: 38px; font-size: 1rem; }

.footer-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.2s;
    display: block;
}
.footer-logo-link:hover .footer-logo-img { opacity: 1; }

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
    color: rgba(255,255,255,.5); text-decoration: none;
    font-size: .88rem; font-weight: 500; transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-links a.active-legal { color: rgba(255,255,255,.85); font-weight: 700; }

.footer-bottom {
    max-width: 1160px; margin: 0 auto;
    padding-top: 1.25rem; text-align: center;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.3); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-logo-img { height: 36px; max-width: 160px; }
}

@media (max-width: 768px) {
    .legal-hero { padding: 110px 0 2rem; }
    .legal-hero h1 { font-size: 1.8rem; }
    .legal-body { padding: 2.5rem 0 3.5rem; }
    .legal-block { margin-bottom: 2rem; padding-bottom: 2rem; }
    .legal-block h2 { font-size: 1.12rem; }
    .legal-block p { font-size: .9rem; }
    .nav-link { display: none; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { justify-content: center; gap: .6rem 1rem; }
    .footer-logo-img { height: 32px; max-width: 140px; }
}

@media (max-width: 480px) {
    .footer-logo-img { height: 28px; max-width: 120px; }
}