@import 'variables.css';

/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: #F8FAFC;
    color: var(--color-text-main);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.nav-link:hover {
    color: var(--color-primary);
}

/* Footer Styles */
footer {
    background: var(--color-text-main);
    color: white;
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
}

footer a {
    color: #94A3B8;
}

footer a:hover {
    color: white;
}

/* Utility Classes */
.text-center {
    text-align: center;
}


/* --- LEGAL PAGES STYLING --- */

/* Legal Grid Layout */
.legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .legal-grid {
        grid-template-columns: 280px 1fr;
        align-items: start;
    }
}

/* Sticky Sidebar */
.legal-sidebar {
    display: none;
}

@media (min-width: 992px) {
    .legal-sidebar {
        display: block;
        position: sticky;
        top: 6rem;
    }
}

/* Table of Contents Card */
.toc-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #E2E8F0;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-nav a {
    color: #64748B;
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.toc-nav a:hover {
    background: #F8FAFC;
    color: var(--color-primary);
    transform: translateX(4px);
}

/* Content Card */
.legal-content-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
}

@media (min-width: 768px) {
    .legal-content-card {
        padding: 3rem;
    }
}

/* Typography refinements for legal text */
.legal-content-card h2 {
    font-size: 1.75rem;
    color: #1E293B;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 0.5rem;
}

.legal-content-card h3 {
    font-size: 1.25rem;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content-card p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.legal-content-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #475569;
}

.legal-content-card li {
    margin-bottom: 0.5rem;
}

/* Intro Text */
.intro-text {
    font-size: 1.2rem !important;
    color: #334155 !important;
    line-height: 1.8 !important;
    margin-bottom: 2rem !important;
}

/* Info Boxes */
.info-box {
    background: #F8FAFC;
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: #475569;
}

.info-box.warning {
    background: #FFF7ED;
    border-left-color: #EA580C;
    color: #9A3412;
}

/* Contact Box */
.contact-box {
    background: #F8FAFC;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #E2E8F0;
}

.email-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.email-link:hover {
    text-decoration: underline;
}

/* Force fix for fixed header overlap on all blog posts */
.blog-header {
    padding-top: 11rem !important;
}
/* --- MOBILE NAVIGATION --- */

/* Default: Hide mobile trigger on desktop */
#mobile-menu-btn {
    display: none !important;
}

/* Mobile Breakpoint */
@media (max-width: 992px) {
    /* Hide desktop nav elements */
    .desktop-nav,
    .desktop-cta {
        display: none !important;
    }

    /* Show mobile trigger */
    #mobile-menu-btn {
        display: block !important;
    }
    
    /* Mobile Menu Styling */
    #mobile-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 999;
        animation: slideDown 0.3s ease-out;
    }
    
    .mobile-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #F1F5F9;
    }
    
    .mobile-link:last-child {
        border-bottom: none;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

