﻿/* ==========================================================================
   Terms Page Styles
   Uses same color palette as auth.css for consistency
   ========================================================================== */

/* Variables - Same as auth.css */
:root {
    --auth-primary: #B8860B;
    --auth-primary-hover: #6d3610;
    --auth-primary-light: #a0522d;
    --auth-text: #333;
    --auth-text-muted: #666;
    --auth-text-light: #999;
    --auth-border: #e0e0e0;
    --auth-error: #dc3545;
    --auth-success: #28a745;
    --auth-info: #3182ce;
    --auth-bg-light: #f8f9fa;
    --auth-bg-cream: #fdfcf8;
    --auth-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --auth-radius: 12px;
    --auth-radius-lg: 16px;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--auth-text);
}

/* ==========================================================================
   Container
   ========================================================================== */

.terms-container {
    background: linear-gradient(135deg, var(--auth-bg-cream) 0%, #f5f5f5 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.terms-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================================
   Back Link
   ========================================================================== */

.terms-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-text-muted);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    padding: 10px 16px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--auth-border);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.terms-back-link:hover {
    background: var(--auth-bg-light);
    color: var(--auth-primary);
    border-color: var(--auth-primary-light);
    transform: translateX(-3px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.terms-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px;
    background: #fff;
    border-radius: var(--auth-radius-lg);
    border: 1px solid var(--auth-border);
    box-shadow: var(--auth-shadow);
}

.terms-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    margin-bottom: 8px;
    color: var(--auth-primary);
}

.terms-header p {
    font-size: 1rem;
    color: var(--auth-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.terms-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.terms-sidebar {
    background: #fff;
    border-radius: var(--auth-radius-lg);
    padding: 24px;
    box-shadow: var(--auth-shadow);
    border: 1px solid var(--auth-border);
    position: sticky;
    top: 24px;
}

.terms-business-info {
    margin-bottom: 24px;
}

.terms-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--auth-bg-light);
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--auth-primary);
    transition: all 0.2s ease;
}

.terms-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184,134,11,0.1);
}

.terms-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--auth-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.terms-info-text h3 {
    margin: 0 0 4px 0;
    color: var(--auth-text);
    font-weight: 600;
    font-size: 0.85rem;
}

.terms-info-text p {
    margin: 0;
    color: var(--auth-text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.terms-nav {
    background: var(--auth-bg-light);
    border-radius: var(--auth-radius);
    padding: 16px;
    border: 1px solid var(--auth-border);
}

.terms-nav h3 {
    margin: 0 0 12px 0;
    color: var(--auth-text);
    font-weight: 600;
    font-size: 1rem;
}

.terms-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms-nav-list li {
    margin-bottom: 6px;
}

.terms-nav-list a {
    display: block;
    color: var(--auth-text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.terms-nav-list a:hover,
.terms-nav-list a.active {
    background: var(--auth-primary);
    color: #fff;
    transform: translateX(4px);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.terms-main {
    background: #fff;
    border-radius: var(--auth-radius-lg);
    padding: 32px;
    box-shadow: var(--auth-shadow);
    border: 1px solid var(--auth-border);
}

.terms-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--auth-border);
    scroll-margin-top: 24px;
}

.terms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--auth-text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--auth-primary);
    display: inline-block;
}

.terms-section p {
    color: var(--auth-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.terms-section ul {
    margin: 16px 0 16px 24px;
    color: var(--auth-text-muted);
}

.terms-section li {
    margin-bottom: 12px;
    line-height: 1.6;
    position: relative;
    font-size: 0.95rem;
}

.terms-section li::before {
    content: '•';
    color: var(--auth-primary);
    font-weight: bold;
    position: absolute;
    left: -16px;
}

.terms-section a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-section a:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Contact Buttons
   ========================================================================== */

.terms-contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.terms-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.terms-contact-btn.email {
    background: var(--auth-primary, #B8860B);
    color: #fff;
}

.terms-contact-btn.email:hover {
    background: var(--auth-primary-hover, #6d3610);
}

.terms-contact-btn.whatsapp {
    background: transparent;
    color: var(--auth-primary, #B8860B);
    border: 1px solid rgba(184,134,11,0.3);
}

.terms-contact-btn.whatsapp:hover {
    background: rgba(184,134,11,0.07);
    border-color: rgba(184,134,11,0.5);
}

.terms-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 900px) {
    .terms-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .terms-sidebar {
        position: static;
        order: 2;
    }

    .terms-main {
        order: 1;
    }

    .terms-nav {
        display: none;
    }

    .terms-business-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        margin-bottom: 0;
    }
    
    .terms-info-item {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .terms-container {
        padding: 20px 16px;
    }

    .terms-header {
        padding: 24px 20px;
    }

    .terms-header h1 {
        font-size: 1.75rem;
    }

    .terms-main {
        padding: 24px 20px;
    }

    .terms-section h2 {
        font-size: 1.25rem;
    }

    .terms-contact-buttons {
        flex-direction: column;
    }

    .terms-contact-btn {
        justify-content: center;
    }

    .terms-business-info {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .terms-container {
        background: white !important;
        padding: 20px !important;
    }

    .terms-back-link,
    .terms-sidebar {
        display: none !important;
    }

    .terms-content {
        grid-template-columns: 1fr !important;
    }

    .terms-main {
        background: white !important;
        box-shadow: none !important;
        padding: 0 !important;
        border: none !important;
    }
}
