/* Legal Pages Styles - Matching Site Design */

:root {
    --primary-color: #8B4513;
    --primary-dark: #654321;
    --primary-light: #FFF8F0;
    --secondary-color: #D2691E;
    --accent-color: #FFA500;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #f44336;
    --text-primary: #2C1810;
    --text-secondary: #5D4E37;
    --text-light: #8B7355;
    --background-primary: #FFFFFF;
    --background-secondary: #FFF8F0;
    --background-accent: #FAF6F2;
    --border-color: #E5D4C1;
    --shadow-sm: 0 2px 4px rgba(139, 69, 19, 0.1);
    --shadow-md: 0 4px 6px rgba(139, 69, 19, 0.15);
    --shadow-lg: 0 10px 25px rgba(139, 69, 19, 0.2);
    --shadow-xl: 0 20px 40px rgba(139, 69, 19, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Legal Page Layout */
.legal-page {
    padding-top: 40px; /* Additional padding on top of body's 110px */
    padding-bottom: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 0.6s ease-out;
}

/* Legal Header */
.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.legal-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.legal-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out;
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.legal-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.legal-section ul,
.legal-section ol {
    margin-left: 30px;
    margin-bottom: 25px;
}

.legal-section li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
}

.legal-section ul li::before {
    content: '✓';
    position: absolute;
    left: -25px;
    color: var(--success-color);
    font-weight: bold;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--background-accent) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 35px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.highlight-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    border: none;
    padding: 0;
}

.highlight-box p {
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Tables */
.timeline-table,
.shipping-table,
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: var(--background-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.timeline-table th,
.shipping-table th,
.data-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-table td,
.shipping-table td,
.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
}

.timeline-table tr:last-child td,
.shipping-table tr:last-child td,
.data-table tr:last-child td {
    border-bottom: none;
}

.timeline-table tr:hover td,
.shipping-table tr:hover td,
.data-table tr:hover td {
    background: var(--background-secondary);
}

/* Partner Grid */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.partner-card {
    padding: 25px;
    background: var(--background-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

.partner-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .legal-content {
        padding: 0 15px;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }
    
    .timeline-table,
    .shipping-table,
    .data-table {
        font-size: 0.9rem;
    }
    
    .timeline-table th,
    .shipping-table th,
    .data-table th,
    .timeline-table td,
    .shipping-table td,
    .data-table td {
        padding: 10px;
    }
    
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .highlight-box {
        padding: 20px;
        margin: 25px 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Strong text styling */
.legal-section strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Links in legal content */
.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.legal-section a:hover {
    border-bottom-color: var(--primary-color);
}

/* Scrollbar styling */
.legal-page::-webkit-scrollbar {
    width: 10px;
}

.legal-page::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

.legal-page::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.legal-page::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}