:root {
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;

    /* Light Mode Palette */
    --bg-primary: #fdfdfc;
    --bg-secondary: #f4f4f3;
    --bg-card: #ffffff;
    --text-primary: #1b1b18;
    --text-secondary: #706f6c;
    --text-muted: #a1a09a;
    --accent: #f53003;
    --accent-glow: rgba(245, 48, 3, 0.1);
    --border-color: rgba(27, 27, 24, 0.08);
    --gradient-accent: linear-gradient(135deg, #f53003 0%, #ff6b4a 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Palette */
        --bg-primary: #0a0a0a;
        --bg-secondary: #161615;
        --bg-card: #1d1d1c;
        --text-primary: #ededec;
        --text-secondary: #a1a09a;
        --text-muted: #62605b;
        --accent: #ff4433;
        --accent-glow: rgba(255, 68, 51, 0.15);
        --border-color: rgba(238, 238, 236, 0.1);
        --gradient-accent: linear-gradient(135deg, #ff4433 0%, #ff7c6b 100%);
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    }
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Gradient background mesh blobs */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.8;
}

.bg-mesh::before,
.bg-mesh::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
}

.bg-mesh::before {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.bg-mesh::after {
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

/* Container Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header Styles */
header {
    margin-bottom: 4rem;
    text-align: left;
    position: relative;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    color: var(--accent);
    transform: translateX(-3px);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.app-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-accent);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    font-family: var(--font-display);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.app-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.meta-tag {
    background-color: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--accent);
    border: 1px solid var(--border-color);
}

/* Search Section */
.search-container {
    margin-top: 2rem;
    position: relative;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    width: 1.1rem;
    height: 1.1rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sidebar Navigation */
.sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-card {
    background-color: var(--bg-card);
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.nav-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-item a:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.nav-item.active a {
    color: var(--accent);
    background-color: var(--accent-glow);
    font-weight: 600;
}

/* Policy Sections */
.policy-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.section-card {
    background-color: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    box-shadow: var(--shadow-lg);
}

.section-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-card h2 svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
}

.section-card p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

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

.section-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-card li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section-card li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* Highlight box */
.highlight-box {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
}

/* FAQ/Accordion area */
.faq-section {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-trigger:hover {
    background-color: var(--bg-secondary);
}

.faq-trigger svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background-color: var(--bg-secondary);
}

.faq-content p {
    padding: 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.faq-item.open .faq-content {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.open .faq-trigger svg {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Footer */
footer {
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-item {
        flex: 1 1 auto;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 2.5rem 1.5rem;
    }

    header h1 {
        font-size: 2.25rem;
    }

    .section-card {
        padding: 1.75rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}
