/* HistoFuture Legal Pages Styling
   This stylesheet provides consistent styling for privacy policy and terms pages
   that matches the main site aesthetic */

:root {
    /* Color palette - matched from home.css */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;
    --primary-lightest: #93c5fd;
    --primary-ultralight: #bfdbfe;

    /* Neutrals */
    --background: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;

    /* Other Brand Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Borders */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-family);
    background: var(--gray-50);
    color: var(--text);
    line-height: 1.6;
}

/* Skip to main content link for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    padding: 1rem;
    background: var(--primary);
    color: white;
    z-index: 2000;
    width: auto;
    height: auto;
    clip: auto;
    margin: 10px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    padding: 0 var(--spacing-2xl);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    font-size: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    letter-spacing: 0.08em;
}

.logo .logo-histo {
    font-weight: 400;
    color: var(--primary-dark);
}

.logo .logo-future {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lighter) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary);
}

/* Main Content Styles */
main {
    padding-top: 120px; /* Increased to prevent overlap with fixed header */
}

.main-container {
    max-width: 1000px;
    margin: 30px auto 4rem; /* Removed top margin since we increased padding-top */
    padding: 0 var(--spacing-2xl);
}

.legal-header {
    text-align: center;
    margin: 0 0 3rem 0; /* Removed top margin to avoid additional spacing */
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.header-divider {
    width: 100px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.legal-section {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33.333333%;
    height: 4px;
    background: var(--primary);
    border-top-right-radius: var(--border-radius-lg);
}

.legal-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.legal-section p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.legal-section ul {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: var(--spacing-lg);
}

.legal-section li {
    margin-bottom: var(--spacing-sm);
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.legal-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

/* Footer Styles */
.footer {
    background: var(--gray-100);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.footer-links a {
    text-decoration: none;
    position: relative;
    color: var(--text-light);
    font-size: 0.875rem;
    transition: color var(--transition-normal);
    padding: 0.5rem 0;
}

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

.footer-links a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.footer-links a:hover:after {
    width: 100%;
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

/* Decorative Elements */
.decorative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.05;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -50px;
}

/* Noscript notice styling */
.noscript-notice {
    background-color: var(--error);
    color: white;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2000;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 0 var(--spacing-lg);
    }

    .main-container {
        padding: 0 var(--spacing-lg);
        margin-top: 2rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section {
        padding: var(--spacing-lg);
    }

    .legal-section h2 {
        font-size: 1.25rem;
    }

    .legal-section p, .legal-section ul {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 var(--spacing-lg);
    }

    .footer-links {
        justify-content: center;
        margin: 0.75rem 0;
    }
}
