/* =============================================
   NEW GENIX SERVICE BOOKING – Privacy Policy
   Premium Modern Design
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f2b5b;
    --primary-light: #1a3f7a;
    --accent: #2b7de9;
    --accent-light: #e8f1fd;
    --accent-gradient: linear-gradient(135deg, #1a3f7a, #2b7de9);
    --purple: #6c5ce7;
    --purple-light: #f0eeff;
    --text: #2d3748;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #f6f8fb;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15,43,91,0.06);
    --shadow-md: 0 4px 16px rgba(15,43,91,0.08);
    --shadow-lg: 0 8px 32px rgba(15,43,91,0.10);
    --shadow-card: 0 2px 12px rgba(15,43,91,0.06), 0 0 0 1px rgba(15,43,91,0.03);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

/* ---- Reading Progress Bar ---- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gradient);
    z-index: 10000;
    transition: width 0.15s linear;
    border-radius: 0 2px 2px 0;
}

/* ====== HEADER ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-app-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.header-badge i {
    font-size: 14px;
}

/* ====== HERO BANNER ====== */
.hero-banner {
    position: relative;
    background: var(--accent-gradient);
    padding: 72px 32px 100px;
    text-align: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-icon-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    backdrop-filter: blur(8px);
}

.hero-icon-ring i {
    font-size: 30px;
    color: #fff;
}

.hero-banner h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.hero-company {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-date {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ====== MOBILE TOC TOGGLE ====== */
.toc-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 900;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(43,125,233,0.35);
    gap: 8px;
    align-items: center;
    transition: var(--transition);
}

.toc-mobile-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(43,125,233,0.45);
}

.toc-mobile-toggle i {
    font-size: 15px;
}

/* ====== MAIN LAYOUT ====== */
.main-layout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 32px 80px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ====== SIDEBAR TOC ====== */
.toc-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.toc-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.toc-header i {
    font-size: 16px;
}

.toc-nav {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid transparent;
}

.toc-link:hover {
    color: var(--accent);
    background: var(--accent-light);
    border-left-color: rgba(43,125,233,0.3);
}

.toc-link.active {
    color: var(--accent);
    background: var(--accent-light);
    font-weight: 600;
    border-left-color: var(--accent);
}

.toc-dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
}

.toc-link.active .toc-dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(43,125,233,0.2);
}

.toc-link:hover .toc-dot {
    background: var(--accent);
}

/* ====== CONTENT AREA ====== */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ====== POLICY CARD ====== */
.policy-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.policy-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Icon bar at top of each card */
.card-icon-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 22px;
    color: #fff;
}

.intro-bar      { background: var(--accent-gradient); }
.collect-bar    { background: linear-gradient(135deg, #0ea5e9, #2b7de9); }
.usage-bar      { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.legal-bar      { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.sharing-bar    { background: linear-gradient(135deg, #ea580c, #f97316); }
.third-bar      { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.retention-bar  { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.security-bar   { background: linear-gradient(135deg, #059669, #34d399); }
.choices-bar    { background: linear-gradient(135deg, #d97706, #fbbf24); }
.account-bar    { background: linear-gradient(135deg, #dc2626, #f87171); }
.children-bar   { background: linear-gradient(135deg, #c026d3, #e879f9); }
.regional-bar   { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.changes-bar    { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.contact-bar    { background: var(--accent-gradient); }

.card-body {
    padding: 32px 36px 36px;
}

.card-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.last-updated {
    font-size: 13.5px;
    color: var(--text-lighter);
    font-weight: 500;
    margin-bottom: 4px;
}

.divider {
    height: 3px;
    width: 50px;
    background: var(--accent-gradient);
    border-radius: 3px;
    margin: 16px 0 20px;
}

.card-body p {
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.75;
}

.card-body p:last-child {
    margin-bottom: 0;
}

/* ---- Styled List ---- */
.styled-list {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.styled-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text);
    transition: var(--transition);
}

.styled-list li:hover {
    background: var(--accent-light);
    transform: translateX(4px);
}

.styled-list li i {
    color: var(--accent);
    font-size: 10px;
    margin-top: 6px;
    flex-shrink: 0;
}

/* ---- Callouts ---- */
.info-callout {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    margin-top: 20px;
}

.info-callout i {
    color: var(--accent);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-callout p {
    margin: 0 !important;
    font-size: 14px;
    color: var(--primary-light);
    font-weight: 500;
}

.warning-callout {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    background: #fff7ed;
    border-radius: var(--radius-sm);
    border-left: 4px solid #f97316;
    margin-top: 20px;
}

.warning-callout i {
    color: #f97316;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-callout p {
    margin: 0 !important;
    font-size: 14px;
    color: #9a3412;
    font-weight: 500;
}

/* ---- Highlight Box ---- */
.highlight-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: var(--radius-sm);
    border: 1px solid #fecaca;
    margin-bottom: 20px;
}

.highlight-box i {
    color: #dc2626;
    font-size: 20px;
}

.highlight-box strong {
    color: #991b1b;
    font-size: 15px;
}

/* ---- Contact Card ---- */
.contact-card {
    margin-top: 20px;
    padding: 24px 28px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.contact-row i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.contact-row span,
.contact-row a {
    font-size: 15px;
    color: var(--text);
}

.contact-row a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-row a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ====== FOOTER ====== */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 0;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 48px 32px 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.footer-app-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 24px;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 28px;
}

.footer-contact,
.footer-updated {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact i,
.footer-updated i {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(43,125,233,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 800;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 28px rgba(43,125,233,0.5);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 240px 1fr;
        gap: 28px;
        padding: 36px 24px 60px;
    }

    .header-inner {
        padding: 12px 20px;
    }

    .card-body {
        padding: 26px 28px 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 28px 16px 60px;
        gap: 20px;
    }

    .toc-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        max-height: 100vh;
        z-index: 950;
        background: var(--white);
        box-shadow: 4px 0 32px rgba(0,0,0,0.2);
        border-radius: 0;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 0;
    }

    .toc-sidebar.open {
        left: 0;
    }

    .toc-card {
        border-radius: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .toc-nav {
        flex: 1;
        overflow-y: auto;
    }

    .toc-mobile-toggle {
        display: flex;
    }

    .header-badge {
        display: none;
    }

    .header-inner {
        padding: 12px 16px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .header-app-name {
        font-size: 15px;
    }

    .hero-banner {
        padding: 52px 20px 80px;
    }

    .hero-banner h1 {
        font-size: 28px;
    }

    .hero-icon-ring {
        width: 64px;
        height: 64px;
    }

    .hero-icon-ring i {
        font-size: 24px;
    }

    .card-body {
        padding: 22px 20px 26px;
    }

    .card-body h2 {
        font-size: 19px;
    }

    .styled-list li {
        padding: 8px 12px;
        font-size: 14px;
    }

    .info-callout,
    .warning-callout {
        padding: 14px 16px;
    }

    .footer-meta {
        flex-direction: column;
        gap: 12px;
    }

    .back-to-top {
        bottom: 24px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .toc-mobile-toggle {
        bottom: 80px;
        right: 16px;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .header-app-name {
        font-size: 14px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .hero-banner h1 {
        font-size: 24px;
    }

    .card-body {
        padding: 18px 16px 22px;
    }
}

/* Print styles */
@media print {
    .site-header,
    .toc-sidebar,
    .toc-mobile-toggle,
    .back-to-top,
    .reading-progress,
    .hero-wave {
        display: none !important;
    }

    .hero-banner {
        background: #fff !important;
        color: #000 !important;
        padding: 20px 0;
    }

    .hero-banner h1,
    .hero-company,
    .hero-date {
        color: #000 !important;
    }

    .hero-icon-ring {
        display: none;
    }

    .main-layout {
        display: block;
        padding: 0;
    }

    .policy-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        opacity: 1 !important;
        transform: none !important;
    }

    .card-icon-bar {
        display: none;
    }

    body {
        background: #fff;
        font-size: 12pt;
    }
}
