/* ===================================
   Legal Pages Stylesheet
   For: Cookie Policy, Privacy Policy, Terms of Service
   =================================== */

/* Import main font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variables for consistency with main site */
:root {
    --primary-blue: #2563eb;
    --primary-green: #10b981;
    --dark-blue: #1e40af;
    --light-blue: #3b82f6;
    
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --gray: #6b7280;
    --dark-gray: #374151;
    --darker-gray: #1f2937;
    --black: #111827;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

/* ===================================
   Policy Page Container
   =================================== */
.policy-page {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.policy-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--darker-gray);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.policy-page .last-updated {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

/* ===================================
   Typography
   =================================== */
.policy-page h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--darker-gray);
    padding-top: 1rem;
}

.policy-page h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--darker-gray);
}

.policy-page h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.policy-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.policy-page strong {
    color: var(--darker-gray);
    font-weight: 600;
}

/* ===================================
   Lists
   =================================== */
.policy-page ul,
.policy-page ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.policy-page li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    list-style: disc;
    color: var(--dark-gray);
}

.policy-page ol li {
    list-style: decimal;
}

.policy-page ul ul,
.policy-page ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ===================================
   Tables
   =================================== */
.policy-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.policy-page th,
.policy-page td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--light-gray);
}

.policy-page th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--darker-gray);
    font-size: 0.95rem;
}

.policy-page td {
    color: var(--dark-gray);
}

.policy-page tr:hover {
    background: #f9fafb;
}

/* ===================================
   Links
   =================================== */
.policy-page a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: var(--transition);
}

.policy-page a:hover {
    color: var(--dark-blue);
}

/* ===================================
   Back Link
   =================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.back-link:hover {
    gap: 0.75rem;
    color: var(--dark-blue);
}

.back-link i {
    font-size: 0.9rem;
}

/* ===================================
   Highlight Box
   =================================== */
.highlight-box {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-blue);
}

.highlight-box p {
    margin-bottom: 0.75rem;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.highlight-box strong {
    color: var(--darker-gray);
}

.highlight-box ul {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ===================================
   Horizontal Rule
   =================================== */
.policy-page hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--light-gray);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .policy-page {
        margin: 100px auto 40px;
        padding: 0 16px;
    }
    
    .policy-page h1 {
        font-size: 2rem;
    }
    
    .policy-page h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .policy-page h3 {
        font-size: 1.15rem;
    }
    
    .policy-page table {
        font-size: 0.9rem;
    }
    
    .policy-page th,
    .policy-page td {
        padding: 10px 12px;
    }
    
    .highlight-box {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .policy-page h1 {
        font-size: 1.75rem;
    }
    
    .policy-page h2 {
        font-size: 1.35rem;
    }
    
    .policy-page table {
        font-size: 0.85rem;
    }
    
    .policy-page th,
    .policy-page td {
        padding: 8px 10px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .back-link,
    nav,
    footer {
        display: none;
    }
    
    .policy-page {
        max-width: 100%;
        margin: 0;
    }
    
    .policy-page h1,
    .policy-page h2,
    .policy-page h3 {
        page-break-after: avoid;
    }
    
    .policy-page table,
    .policy-page ul,
    .policy-page ol {
        page-break-inside: avoid;
    }
}