/* ======================
   LEGAL PAGES STYLESHEET
   LyfeLine Technologies
   ====================== */

/* --- CSS Variables --- */
:root {
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --text-light-gray: #CCCCCC;
    --color-deep-red: #9E2A1B;
    --color-bright-redorange: #E64A19;
    --color-vibrant-orange: #F57C00;
    --color-golden-yellow: #FFA726;
    --accent-gradient: linear-gradient(90deg, #9E2A1B, #E64A19, #F57C00, #FFA726);
    --card-bg: #0f0f0f;
    --footer-dark-gray: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
}

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

img,
picture,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--primary-black);
    padding: 15px 5vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-white);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header-logo-icon {
    height: 35px;
    margin-right: 10px;
    filter: drop-shadow(0 0 8px rgba(255, 196, 0, 0.5));
}

.btn-signin {
    border: 1px solid var(--text-light-gray);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    color: var(--primary-white);
    transition: all 0.3s ease;
    background-color: transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-signin:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.4);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.legal-hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-deep-red) 0%, var(--color-bright-redorange) 60%);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50h100M50 0v100" stroke="%23ffffff" stroke-width="0.3" opacity="0.1" /></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100px 100px;
    }
}

.legal-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.legal-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

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

/* --- Intro Section --- */
.legal-intro {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

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

.legal-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-white);
}

.legal-intro p {
    font-size: 1.1rem;
    color: var(--text-light-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- Legal Cards Grid --- */
.legal-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 80px;
}

.legal-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.6s ease-out backwards;
}

.legal-card:nth-child(1) { animation-delay: 0.6s; }
.legal-card:nth-child(2) { animation-delay: 0.7s; }
.legal-card:nth-child(3) { animation-delay: 0.8s; }
.legal-card:nth-child(4) { animation-delay: 0.9s; }

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

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.legal-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-vibrant-orange);
    box-shadow: 0 15px 35px rgba(246, 124, 0, 0.15);
}

.legal-card:hover::before {
    opacity: 0.05;
}

.legal-card i {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.4s ease;
}

.legal-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.legal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-white);
    position: relative;
    z-index: 1;
}

.legal-card p {
    color: var(--text-light-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.legal-card .read-more {
    color: var(--color-vibrant-orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    transition: gap 0.3s ease;
}

.legal-card:hover .read-more {
    gap: 1rem;
}

.legal-card .read-more i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin: 0;
}

.legal-card:hover .read-more i {
    transform: translateX(5px);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-white);
}

.contact-section p {
    color: var(--text-light-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--color-vibrant-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link:hover {
    color: var(--color-golden-yellow);
    transform: translateY(-2px);
}

.contact-link i {
    transition: transform 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.2);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-dark-gray);
    color: var(--text-light-gray);
    padding: 4rem 5vw 2rem 5vw;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--primary-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--color-golden-yellow);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light-gray);
}

/* --- Content Pages (Privacy, Terms, etc.) --- */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px;
    animation: fadeIn 0.8s ease-out;
}

.legal-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    color: var(--primary-white);
    border-bottom: 2px solid var(--color-vibrant-orange);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: var(--primary-white);
}

.legal-content p {
    color: var(--text-light-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-light-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

.legal-content strong {
    color: var(--primary-white);
    font-weight: 600;
}

.legal-content a {
    color: var(--color-vibrant-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: var(--color-golden-yellow);
    text-decoration: underline;
}

.last-updated {
    text-align: center;
    font-style: italic;
    color: var(--text-light-gray);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legal-hero {
        padding: 60px 20px;
    }
    
    .legal-container {
        padding: 60px 20px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .legal-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-hero h1 {
        font-size: 1.8rem;
    }
    
    .legal-hero p {
        font-size: 1rem;
    }
    
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .btn-signin {
        width: 100%;
        text-align: center;
    }

    .legal-cards-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 40px 16px 60px 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 48px 16px;
    }

    .legal-card {
        padding: 1.75rem;
    }

    .contact-section {
        padding: 2rem 1.5rem;
    }
}