/* ===========================
   Evermark Real Estate Services
   Privacy Policy — Stylesheet
   Palette extracted from logo:
   - Deep Navy Blue: #102A53
   - Royal Blue:     #1E3F7A
   - Soft Blue Mist: #E8EEF7
   - Warm Gold:      #C9A24A
   - Light Gold:     #E5C97A
   - Ivory:          #FBF9F4
   =========================== */

:root {
    --navy-900: #0E2447;
    --navy-800: #102A53;
    --navy-700: #1E3F7A;
    --navy-500: #355492;
    --blue-mist: #E8EEF7;
    --gold-600: #B8902F;
    --gold-500: #C9A24A;
    --gold-400: #E5C97A;
    --ivory: #FBF9F4;
    --bg: #F6F8FC;
    --card: #FFFFFF;
    --text: #1F2A40;
    --text-muted: #5B6680;
    --border: #E3E8F0;
    --shadow-sm: 0 2px 8px rgba(16, 42, 83, 0.06);
    --shadow-md: 0 12px 30px rgba(16, 42, 83, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--navy-700);
    text-decoration: none;
    border-bottom: 1px dotted var(--gold-500);
    transition: color .2s ease, border-color .2s ease;
}

a:hover {
    color: var(--gold-600);
    border-bottom-color: var(--navy-700);
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: #fff;
    padding: 28px 24px;
    border-bottom: 3px solid var(--gold-500);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(201, 162, 74, 0.18), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.06), transparent 40%);
    pointer-events: none;
}

.header-inner {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}

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

.brand-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fff;
    line-height: 1.25;
}

.brand-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-400);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===========================
   HERO / TITLE BLOCK
   =========================== */
.policy-main {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.policy-hero {
    background: var(--card);
    border-radius: 16px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.policy-hero::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-700), var(--gold-500), var(--navy-700));
}

.policy-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.policy-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 18px;
    font-weight: 500;
}

.effective-date {
    display: inline-block;
    background: var(--blue-mist);
    color: var(--navy-800);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid #d6e1f0;
}

.effective-date strong {
    color: var(--navy-900);
    font-weight: 600;
}

/* ===========================
   CONTENT
   =========================== */
.policy-content {
    background: var(--card);
    border-radius: 16px;
    padding: 48px 48px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.policy-intro {
    font-size: 1.02rem;
    color: var(--text);
    margin-bottom: 18px;
}

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-800);
    margin: 36px 0 16px;
    padding-left: 14px;
    border-left: 4px solid var(--gold-500);
    line-height: 1.3;
}

.policy-content p {
    margin-bottom: 14px;
    color: var(--text);
}

.policy-content ul {
    margin: 8px 0 18px 8px;
    padding-left: 24px;
}

.policy-content ul li {
    margin-bottom: 8px;
    color: var(--text);
    position: relative;
    padding-left: 6px;
}

.policy-content ul li::marker {
    color: var(--gold-500);
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    margin: 28px 0 8px;
}

.contact-line {
    font-size: 1.05rem;
    font-weight: 500;
}

.contact-block {
    background: var(--blue-mist);
    border-left: 4px solid var(--gold-500);
    padding: 18px 22px;
    border-radius: 8px;
    margin-top: 12px;
}

.contact-block .company-name {
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: #cfd7e6;
    padding: 36px 24px;
    border-top: 3px solid var(--gold-500);
}

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

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

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

.footer-company {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.4px;
}

.footer-contact {
    font-size: 0.9rem;
    color: #cfd7e6;
    margin-top: 4px;
}

.footer-contact a {
    color: var(--gold-400);
    border-bottom-color: transparent;
}

.footer-contact a:hover {
    color: #fff;
    border-bottom-color: var(--gold-400);
}

.footer-meta {
    text-align: right;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--gold-400);
    font-weight: 500;
    margin-bottom: 4px;
}

.copyright {
    font-size: 0.85rem;
    color: #9aa6bf;
}

/* ===========================
   BACK TO TOP
   =========================== */
#back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--navy-800);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(16, 42, 83, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, background .25s ease, visibility .25s;
    z-index: 50;
    border: 2px solid var(--gold-500);
}

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

#back-to-top:hover {
    background: var(--gold-600);
    border-color: var(--gold-400);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 720px) {
    .brand-logo {
        width: 60px;
        height: 60px;
    }
    .brand-name {
        font-size: 1.2rem;
    }
    .brand-tag {
        font-size: 0.72rem;
        letter-spacing: 1.4px;
    }
    .policy-main {
        padding: 30px 16px 60px;
    }
    .policy-hero {
        padding: 30px 22px;
    }
    .policy-title {
        font-size: 1.85rem;
    }
    .policy-content {
        padding: 28px 22px;
    }
    .section-heading {
        font-size: 1.22rem;
        margin: 28px 0 12px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-meta {
        text-align: center;
    }
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .brand {
        gap: 12px;
    }
    .brand-name {
        font-size: 1.05rem;
    }
    .policy-title {
        font-size: 1.6rem;
    }
    .effective-date {
        font-size: 0.85rem;
        padding: 7px 16px;
    }
}
