/* =========================================
   GRAINS Daily Wellness - Privacy Policy
   Palette extracted from logo:
   - Deep Green: #1f5a36
   - Forest Green: #2e7d4f
   - Leaf Green: #4ca36b
   - Gold Accent: #c9a14a
   - Soft Cream: #fbf9f3
   - Warm White: #ffffff
   - Text Dark: #1f2a23
   ========================================= */

:root {
    --color-primary: #1f5a36;
    --color-primary-light: #2e7d4f;
    --color-accent: #c9a14a;
    --color-accent-soft: #e6cf91;
    --color-bg: #fbf9f3;
    --color-bg-soft: #f3efe3;
    --color-card: #ffffff;
    --color-text: #1f2a23;
    --color-text-muted: #556b5d;
    --color-border: #e6e1d2;
    --shadow-sm: 0 2px 8px rgba(31, 90, 54, 0.06);
    --shadow-md: 0 8px 28px rgba(31, 90, 54, 0.1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== HEADER ====== */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #fbf9f3 100%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.page-tag {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(201, 161, 74, 0.4);
}

/* ====== HERO ====== */
.hero-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 64px 28px 72px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(201, 161, 74, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-banner::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(76, 163, 107, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-accent-soft);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 18px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 18px;
}

.hero-meta {
    font-size: 1rem;
    color: #f3eed8;
    font-weight: 400;
}

.hero-meta strong {
    color: var(--color-accent-soft);
    font-weight: 600;
}

/* ====== MAIN POLICY ====== */
.policy-main {
    max-width: 880px;
    margin: -32px auto 0;
    padding: 0 24px 60px;
    position: relative;
    z-index: 3;
}

.policy-content {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 56px clamp(24px, 5vw, 64px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.intro-paragraph {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.85;
    margin-bottom: 16px;
}

.intro-paragraph:last-of-type {
    margin-bottom: 0;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border) 20%, var(--color-border) 80%, transparent 100%);
    margin: 36px 0;
}

.policy-section {
    scroll-margin-top: 100px;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 18px;
    line-height: 1.3;
    position: relative;
    padding-left: 18px;
}

.section-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary-light) 100%);
    border-radius: 4px;
}

.policy-section p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.85;
    margin-bottom: 14px;
}

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

.policy-list {
    list-style: none;
    margin: 14px 0 18px;
    padding: 0;
}

.policy-list li {
    position: relative;
    padding: 8px 0 8px 30px;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

.policy-list li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}

/* Contact card */
.contact-card {
    margin-top: 18px;
    background: linear-gradient(135deg, var(--color-bg-soft) 0%, #fffaee 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 22px 26px;
}

.contact-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px !important;
}

.contact-email a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--color-accent);
    transition: color 0.2s ease;
}

.contact-email a:hover {
    color: var(--color-accent);
}

/* ====== FOOTER ====== */
.site-footer {
    background: linear-gradient(135deg, #163d25 0%, #1f5a36 100%);
    color: #d9e6dd;
    padding: 44px 28px 32px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
}

.footer-company {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.footer-tag {
    font-size: 0.78rem;
    color: var(--color-accent-soft);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.footer-info {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-info a {
    color: var(--color-accent-soft);
    text-decoration: none;
    font-weight: 500;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-updated {
    color: #cfe0d4;
}

.footer-copy {
    font-size: 0.8rem;
    color: #a9bdaf;
    margin-top: 4px;
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 60;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 720px) {
    .header-container {
        padding: 14px 18px;
        gap: 12px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-tagline {
        font-size: 0.7rem;
    }

    .page-tag {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .hero-banner {
        padding: 48px 20px 56px;
    }

    .policy-main {
        padding: 0 16px 40px;
        margin-top: -24px;
    }

    .policy-content {
        padding: 36px 22px;
        border-radius: 16px;
    }

    .divider {
        margin: 28px 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .back-to-top {
        bottom: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .brand-text {
        display: none;
    }

    .header-container {
        justify-content: space-between;
    }

    .section-heading {
        padding-left: 14px;
    }
}
