/* ========================================
   Focusage Privacy Policy - Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-start: #6366f1;
    --gradient-end: #8b5cf6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text);
    padding: 0.75rem;
    border-radius: var(--radius);
}

.mobile-menu a:hover {
    background: var(--surface-light);
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.hero-decoration {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.update-icon {
    font-size: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   Main Content Layout
   ======================================== */
.main-content {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Table of Contents
   ======================================== */
.toc {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.toc h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.toc a:hover {
    color: var(--text);
    background: var(--surface-light);
    text-decoration: none;
}

.toc a.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

@media (max-width: 992px) {
    .toc {
        display: none;
    }
}

/* ========================================
   Content Sections
   ======================================== */
.content {
    max-width: 800px;
}

.section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
}

.section-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 1.5rem;
    background: var(--surface);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    padding-top: 0.5rem;
}

.section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

.section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ========================================
   Tables
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--surface-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    color: var(--text-muted);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* ========================================
   Highlight Box
   ======================================== */
.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text);
}

/* ========================================
   Not Collected Grid
   ======================================== */
.not-collected {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.not-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Usage Grid
   ======================================== */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.usage-card {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.usage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.usage-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.usage-card h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.usage-card p {
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 576px) {
    .usage-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Security Features
   ======================================== */
.security-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius);
}

.security-item .check {
    font-size: 1.25rem;
}

/* ========================================
   Third Party Grid
   ======================================== */
.third-party-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.third-party-card {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.third-party-card h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.third-party-card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.third-party-card a {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .third-party-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Rights Grid
   ======================================== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.right-card {
    background: var(--surface-light);
    padding: 1.25rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.right-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.right-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.right-card h4 {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.right-card p {
    font-size: 0.75rem;
    margin: 0;
}

/* ========================================
   How To Box
   ======================================== */
.how-to-box {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.how-to-box h4 {
    color: var(--text);
    margin-bottom: 1rem;
}

.how-to-box ul {
    list-style: none;
}

.how-to-box li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.how-to-box li:last-child {
    border-bottom: none;
}

/* ========================================
   Custom List
   ======================================== */
.custom-list {
    list-style: none;
    margin: 1rem 0;
}

.custom-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--text-muted);
}

.custom-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ========================================
   Contact Card
   ======================================== */
.contact-card {
    background: var(--surface-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    color: var(--text);
    min-width: 100px;
}

/* ========================================
   Summary Section
   ======================================== */
.summary-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--primary);
}

.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
}

.summary-icon {
    font-size: 1.25rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: var(--primary);
    color: white;
}
