/* ============================================
   Consigliere Support Page — Styles
   Modern glassmorphism with deep navy palette
   ============================================ */

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

:root {
    /* HSL Anchor: ~225° (Deep Blue/Navy) */
    --color-bg: #0a0e1a;
    --color-bg-subtle: #111627;
    --color-surface: rgba(255, 255, 255, 0.04);
    --color-surface-hover: rgba(255, 255, 255, 0.07);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-active: rgba(255, 255, 255, 0.15);
    --color-text: #e8eaf0;
    --color-text-secondary: #8b90a5;
    --color-text-muted: #5a5f75;
    --color-accent: #6e8efb;
    --color-accent-glow: rgba(110, 142, 251, 0.3);
    --color-accent-2: #a777e3;
    --color-green: #4ade80;
    --color-amber: #fbbf24;
    --color-red: #f87171;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-glow: 0 0 60px -12px var(--color-accent-glow);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #93b0ff;
    text-decoration: underline;
}

/* --- Container --- */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-accent), transparent 70%);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-2), transparent 70%);
    top: 40%;
    right: -15%;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4f7cf7, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* --- Header --- */
.site-header {
    padding: 40px 0 24px;
}

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

.app-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.2), rgba(167, 119, 227, 0.2));
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.app-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-tagline {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-top: 1px;
}

/* --- Tab Navigation --- */
.tab-nav {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 28px;
    width: fit-content;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.tab-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.tab-btn.active svg {
    opacity: 1;
}

/* --- Tab Panels --- */
.tab-panel {
    display: none;
    animation: fadeIn 0.35s ease;
}

.tab-panel.active {
    display: block;
}

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

/* --- Glass Card --- */
.glass-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-glow), 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* --- Support Panel --- */
.support-hero {
    text-align: center;
    margin-bottom: 40px;
}

.support-hero h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.support-hero p {
    color: var(--color-text-secondary);
    font-size: 16px;
    max-width: 460px;
    margin: 0 auto;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.support-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.support-item:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-active);
    transform: translateY(-2px);
}

.support-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.15), rgba(167, 119, 227, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.support-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.support-item p {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.support-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    word-break: break-all;
}

.support-link-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.support-link-btn:hover {
    color: #93b0ff;
}

.support-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(110, 142, 251, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* --- Privacy Policy Panel --- */
.policy-card {
    padding: 48px 44px;
}

.policy-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.policy-header h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.effective-date {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.policy-intro {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
}

.policy-intro p {
    color: var(--color-text-secondary);
    font-size: 15px;
    margin-bottom: 10px;
}

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

/* --- Policy Sections --- */
.policy-section {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.policy-section h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-num {
    color: var(--color-accent);
    font-weight: 800;
    font-size: 16px;
}

.policy-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 2px;
}

.policy-section p {
    font-size: 14.5px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.75;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.policy-section ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14.5px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.policy-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.6;
}

.policy-section ul li strong {
    color: var(--color-text);
    font-weight: 600;
}

/* --- Summary Highlights --- */
.policy-highlights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none !important;
    padding: 0 !important;
}

.policy-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    padding-left: 18px !important;
}

.policy-highlights li::before {
    display: none !important;
}

.highlight-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.highlight-icon.no-track {
    background: rgba(74, 222, 128, 0.12);
    color: var(--color-green);
}

.highlight-icon.ai-icon {
    background: rgba(110, 142, 251, 0.12);
    color: var(--color-accent);
}

.highlight-icon.optional-icon {
    background: rgba(251, 191, 36, 0.12);
    color: var(--color-amber);
}

.policy-highlights li div strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.policy-highlights li div {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* --- Callout Box --- */
.policy-callout {
    background: rgba(110, 142, 251, 0.06);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.policy-callout strong {
    color: var(--color-text);
    font-weight: 700;
}

/* --- Footer --- */
.site-footer {
    padding: 40px 0 32px;
    text-align: center;
    margin-top: 40px;
}

.site-footer p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--color-text-secondary);
    font-weight: 500;
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .site-header {
        padding: 28px 0 20px;
    }

    .app-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .app-name {
        font-size: 22px;
    }

    .tab-nav {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }

    .glass-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .policy-card {
        padding: 32px 22px;
    }

    .support-hero h2 {
        font-size: 26px;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .policy-header h2 {
        font-size: 24px;
    }

    .policy-section h3 {
        font-size: 17px;
    }

    .policy-highlights li {
        padding: 14px 14px;
        padding-left: 14px !important;
        gap: 12px;
    }

    .blob-1 { width: 300px; height: 300px; }
    .blob-2 { width: 250px; height: 250px; }
    .blob-3 { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    .app-tagline {
        display: none;
    }

    .tab-btn svg {
        display: none;
    }

    .glass-card {
        padding: 24px 16px;
    }

    .policy-card {
        padding: 28px 18px;
    }

    .policy-section h4 {
        font-size: 14px;
    }
}
