/* ========================================
   LEGAL PAGES STYLES
   Terms of Service & Privacy Policy
   Corporate, Modern, Professional Design
   ======================================== */

/* ========================================
   LEGAL HERO SECTION
   ======================================== */

.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, #17a2b8 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0 0 var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    margin-top: 0 !important;
    /* Let header-hero-spacing-fix.js handle the top padding dynamically */
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 147, 222, 0.1), rgba(23, 162, 184, 0.1));
    z-index: 1;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--light-color), transparent);
    z-index: 2;
}

.legal-hero .container {
    position: relative;
    z-index: 3;
}

/* Breadcrumb Styling */
.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    list-style: none;
    animation: fadeInDown 0.6s ease-out;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 var(--spacing-sm);
    color: rgba(255, 255, 255, 0.6);
    font-weight: var(--font-weight-medium);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.breadcrumb-item a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    color: var(--white);
    font-weight: var(--font-weight-semibold);
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: var(--spacing-xl);
}

.legal-hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    line-height: 1.2;
}

.legal-hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
    line-height: 1.6;
}

.last-updated {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ========================================
   LEGAL CONTENT SECTION
   ======================================== */

.legal-content {
    padding: var(--spacing-xxl) 0;
    background: var(--light-color);
    position: relative;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--light-color), transparent);
}

.legal-document {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.legal-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: var(--spacing-xl) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: all var(--transition-normal);
}

.section:last-child {
    border-bottom: none;
}

.section:hover {
    background: rgba(0, 147, 222, 0.02);
}

.section h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-left: var(--spacing-md);
    line-height: 1.3;
}

.section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-sm);
}

.section h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    position: relative;
    padding-left: var(--spacing-sm);
}

.section h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    opacity: 0.7;
}

.section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

/* ========================================
   LISTS
   ======================================== */

.section ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.section ul li {
    position: relative;
    padding: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
}

.section ul li:hover {
    background: rgba(0, 147, 222, 0.05);
    transform: translateX(4px);
}

.section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: var(--spacing-sm);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    transition: all var(--transition-normal);
}

.section ul li:hover::before {
    background: var(--accent-color);
    transform: scale(1.1);
}

.section ul li strong {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   CONTACT INFO
   ======================================== */

.contact-info {
    background: linear-gradient(135deg, rgba(0, 147, 222, 0.05), rgba(23, 162, 184, 0.05));
    border: 1px solid rgba(0, 147, 222, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
    position: relative;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

.contact-info a:hover {
    color: var(--accent-color);
    background: rgba(23, 162, 184, 0.1);
    transform: translateY(-1px);
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.contact-info a:hover::after {
    width: 100%;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Scroll Animation for Sections */
.section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }
.section:nth-child(8) { animation-delay: 0.8s; }
.section:nth-child(9) { animation-delay: 0.9s; }
.section:nth-child(10) { animation-delay: 1.0s; }
.section:nth-child(n+11) { animation-delay: 1.1s; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .legal-hero {
        padding: 0 0 var(--spacing-lg) 0;
        min-height: 40vh;
        background-attachment: scroll;
        margin-top: 0 !important;
    }
    
    .legal-hero h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    
    .legal-hero .lead {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
    }
    
    .legal-content {
        padding: var(--spacing-xl) 0;
    }
    
    .section {
        padding: var(--spacing-lg) var(--spacing-lg);
    }
    
    .section h2 {
        font-size: clamp(1.3rem, 2.8vw, 1.6rem);
        margin-bottom: var(--spacing-md);
    }
    
    .section h3 {
        font-size: clamp(1.1rem, 2.3vw, 1.3rem);
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 0 0 var(--spacing-md) 0;
        min-height: 35vh;
        text-align: center;
        margin-top: 0 !important;
    }
    
    /* Hide breadcrumbs on mobile */
    .breadcrumb {
        display: none;
    }
    
    .legal-hero h1 {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .legal-hero .lead {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .last-updated {
        font-size: 0.85rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .legal-content {
        padding: var(--spacing-lg) 0;
    }
    
    .section {
        padding: var(--spacing-md) var(--spacing-md);
    }
    
    .section h2 {
        font-size: clamp(1.2rem, 2.5vw, 1.5rem);
        padding-left: var(--spacing-sm);
    }
    
    .section h2::before {
        width: 3px;
    }
    
    .section h3 {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    }
    
    .section p {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .section ul li {
        padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-md);
        font-size: 0.95rem;
    }
    
    .section ul li::before {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
        top: var(--spacing-xs);
    }
    
    .contact-info {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 0 0 var(--spacing-sm) 0;
        min-height: 30vh;
        margin-top: 0 !important;
    }
    
    .legal-hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
    }
    
    .legal-hero .lead {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }
    
    .section {
        padding: var(--spacing-sm) var(--spacing-sm);
    }
    
    .section h2 {
        font-size: clamp(1.1rem, 2.3vw, 1.4rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .section h3 {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }
    
    .section p,
    .section ul li {
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: var(--spacing-sm);
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .legal-hero h1,
    .legal-hero .lead,
    .last-updated,
    .section {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .legal-document::before {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.breadcrumb-item a:focus,
.contact-info a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .section:hover {
        background: rgba(0, 147, 222, 0.1);
    }
    
    .contact-info {
        border-color: var(--primary-color);
    }
    
    .section ul li::before {
        background: var(--text-primary);
    }
}

/* Print styles */
@media print {
    .legal-hero {
        background: none;
        color: var(--text-primary);
        padding: var(--spacing-md) 0;
    }
    
    .legal-hero h1,
    .legal-hero .lead,
    .last-updated {
        color: var(--text-primary);
        text-shadow: none;
    }
    
    .breadcrumb {
        background: none;
        border: 1px solid var(--border-color);
    }
    
    .legal-document {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .section:hover {
        background: none;
    }
    
    .section ul li:hover {
        background: none;
        transform: none;
    }
} 