/* ==========================================================================
   GoAds - Privacy Policy & Terms of Service Portal
   Theme: Blue Glassmorphism Light Theme with Gradient
   Compliant with: Google Play Console Policies, Google API Limited Use,
                   Meta Platform Terms, GDPR & DPDP Act
   ========================================================================== */

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-dark: #1E40AF;
    --primary-light: #EFF6FF;
    --primary-glow: rgba(37, 99, 235, 0.15);
    
    --accent-cyan: #0EA5E9;
    --accent-cyan-light: #E0F2FE;
    --accent-indigo: #4F46E5;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    --slate-950: #090D16;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748B;
    --slate-400: #94A3B8;
    --slate-300: #CBD5E1;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --slate-50: #F8FAFC;
    
    --bg-base: #F4F8FD;
    --glass-bg: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(255, 255, 255, 0.95);
    --glass-border-blue: rgba(37, 99, 235, 0.12);
    
    --card-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.08), 0 4px 14px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 30px 60px -12px rgba(37, 99, 235, 0.16);
    
    --btn-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #0EA5E9 100%);
    --btn-gradient-hover: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 50%, #0284C7 100%);
    --text-gradient: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #0EA5E9 100%);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--slate-800);
    line-height: 1.7;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Ambient Blobs */
.blobs-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.blob-bg {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.6;
}

.blob-blue {
    top: -150px;
    right: -100px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.45) 0%, rgba(219, 234, 254, 0.15) 70%);
}

.blob-cyan {
    top: 550px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(186, 230, 253, 0.4) 0%, rgba(224, 242, 254, 0.1) 70%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: radial-gradient(rgba(37, 99, 235, 0.08) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    opacity: 0.7;
}

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 84px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    z-index: 1000;
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.logo-wrapper:hover .logo-icon-img {
    transform: scale(1.05);
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-main span {
    color: var(--accent-cyan);
}

.logo-sub {
    font-size: 11px;
    color: var(--slate-500);
    font-weight: 600;
    display: block;
    line-height: 1;
}

.nav-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.trust-badge.meta-badge {
    background: #EFF6FF;
    color: #1D4ED8;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: white;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-back-home:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Page Hero & Tab Switcher */
.policy-hero {
    padding-top: 135px;
    padding-bottom: 30px;
    text-align: center;
}

.policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.policy-hero h1 {
    font-size: 46px;
    letter-spacing: -1.2px;
    margin-bottom: 12px;
}

.policy-hero p {
    font-size: 17px;
    color: var(--slate-600);
    max-width: 720px;
    margin: 0 auto 28px auto;
}

/* Tab Switcher (Interactive Segmented Control) */
.switcher-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

.segmented-switcher {
    display: inline-flex;
    background: white;
    padding: 6px;
    border-radius: 18px;
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
    gap: 8px;
    position: relative;
}

.switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-btn:hover {
    color: var(--primary);
}

.switch-btn.active {
    background: var(--btn-gradient);
    color: white !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Quick Search & Actions Bar */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.last-updated-text {
    font-size: 13.5px;
    color: var(--slate-500);
    font-weight: 600;
}

.last-updated-text strong {
    color: var(--slate-800);
}

.right-actions {
    display: flex;
    gap: 12px;
}

.btn-action-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-700);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-icon:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Layout Grid: Sticky Sidebar TOC + Main Content */
.policy-layout-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 80px;
}

/* Sticky Sidebar Table of Contents */
.toc-sidebar {
    position: sticky;
    top: 110px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.toc-header {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--slate-600);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.toc-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    border-left: 3px solid var(--primary);
}

/* Main Content Article */
.policy-content-card {
    background: white;
    border-radius: 24px;
    padding: 48px 52px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: var(--card-shadow);
    min-height: 800px;
}

.policy-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.policy-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Policy Content Formatting */
.policy-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--slate-100);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    font-size: 26px;
    margin-bottom: 14px;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-section h3 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: var(--slate-800);
}

.policy-section p {
    font-size: 15px;
    color: var(--slate-600);
    margin-bottom: 16px;
}

.policy-section ul {
    margin-left: 20px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-section li {
    font-size: 14.5px;
    color: var(--slate-700);
    line-height: 1.6;
}

.policy-section strong {
    color: var(--slate-900);
}

/* Callout Alert Boxes */
.policy-alert {
    border-radius: 14px;
    padding: 18px 22px;
    margin: 20px 0;
    border: 1.5px solid;
    font-size: 14px;
    line-height: 1.6;
}

.policy-alert.alert-info {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1E40AF;
}

.policy-alert.alert-success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.policy-alert.alert-warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    color: #92400E;
}

.policy-alert-title {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 15px;
}

/* Compliance Table */
.policy-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.policy-table th, .policy-table td {
    padding: 14px 18px;
    border: 1px solid var(--slate-200);
}

.policy-table th {
    background: var(--slate-50);
    color: var(--slate-900);
    font-weight: 700;
}

.policy-table tr:nth-child(even) {
    background: #F8FAFC;
}

/* Contact Card */
.contact-card-box {
    background: var(--primary-light);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 18px;
    padding: 28px;
    margin-top: 24px;
}

.contact-card-box h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 14px;
}

.contact-item {
    font-size: 14px;
    color: var(--slate-700);
}

.contact-item span {
    display: block;
    font-size: 12px;
    color: var(--slate-500);
    font-weight: 700;
    text-transform: uppercase;
}

/* Footer */
.portal-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13.5px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .policy-layout-grid {
        grid-template-columns: 1fr;
    }
    .toc-sidebar {
        display: none;
    }
    .nav-badges {
        display: none;
    }
}

@media (max-width: 768px) {
    .policy-hero h1 {
        font-size: 34px;
    }
    .segmented-switcher {
        flex-direction: column;
        width: 100%;
    }
    .switch-btn {
        justify-content: center;
    }
    .policy-content-card {
        padding: 28px 20px;
    }
    .actions-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media print {
    .navbar, .switcher-wrapper, .actions-bar, .toc-sidebar, .portal-footer {
        display: none !important;
    }
    .policy-hero {
        padding-top: 0;
    }
    .policy-content-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .policy-tab-content {
        display: block !important;
    }
}
