/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Import variables and common styles from home.css */
@import 'home.css';

/* CSS Variables for Legal Pages */
:root {
    --primary: #4A90E2;      /* Brighter mountain blue */
    --secondary: #88B04B;    /* Forest green */
    --accent: #E9408F;      /* Pink accent */
    --snow: #F5F5F5;        /* Snow white */
    --ice: #E3F2FD;         /* Ice blue */
    --dark: #1A1A2E;        /* Deep night sky */
    --dark-bg: #121212;     /* Dark background */
    --dark-surface: #1E1E1E; /* Slightly lighter dark surface */
    --text: #E0E0E0;        /* Light text */
    --text-light: #B0B0B0;  /* Lighter text */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--dark-bg);
}

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

/* Navigation Styles */
header {
    background-color: var(--dark-surface);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Legal Hero Section */
.legal-hero {
    height: 60vh;
    background-image: url('../images/mountains2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    padding: 2rem 0;
}

.legal-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.7),
        rgba(18, 18, 18, 0.8)
    );
}

.legal-hero .hero-content {
    position: relative;
    z-index: 1;
    color: var(--snow);
    padding: 2rem 20px;
    max-width: 800px;
}

.legal-hero .hero-logo {
    margin-bottom: 2rem;
}

.legal-hero .hero-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.legal-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-hero p {
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Legal Content Section */
.legal-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--dark-surface);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.legal-placeholder {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 2rem 0;
}

.legal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.legal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

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

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

.legal-content a:hover {
    color: var(--accent);
}

/* Burger Menu Styles */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 1100;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 4px 0;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.burger-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.burger.burger-active span:nth-child(2) {
    opacity: 0;
}

.burger.burger-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Burger Menu */
    .burger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70vw;
        max-width: 320px;
        background: var(--dark-surface);
        box-shadow: -2px 0 12px rgba(0,0,0,0.2);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        display: flex;
    }
    
    .nav-links.nav-active {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        display: block;
        padding: 0.7rem 0;
    }
    
    nav {
        position: relative;
    }
    
    /* Header and Navigation */
    header {
        padding: 0.5rem 2%;
    }
    
    nav {
        padding: 0.7rem 2%;
    }
    
    .logo img {
        height: 32px;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    .legal-hero {
        height: 50vh;
        margin-top: 55px;
        padding: 2rem 0.5rem;
    }
    
    .legal-hero .hero-content {
        max-width: 98vw;
        padding: 1rem 0.5rem;
    }
    
    .legal-hero .hero-logo img {
        height: 80px;
        width: auto;
    }
    
    .legal-hero h1 {
        font-size: 2.3rem;
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    
    .legal-hero p {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        margin-top: 0.7rem;
        padding-bottom: 0.7rem;
        text-align: center;
        width: 100%;
        padding: 0 0.5rem 0.7rem 0.5rem;
        box-sizing: border-box;
    }
    
    /* Legal Section */
    .legal-section {
        padding: 3rem 0;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .legal-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .legal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .legal-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .legal-content ul,
    .legal-content ol {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Header and Navigation */
    .logo img {
        height: 28px;
    }
    
    .logo span {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .legal-hero {
        height: 45vh;
        margin-top: 50px;
        padding: 1.5rem 0.5rem;
    }
    
    .legal-hero .hero-logo img {
        height: 60px;
    }
    
    .legal-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .legal-hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Legal Section */
    .legal-section {
        padding: 2rem 0;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
    }
    
    .legal-content h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .legal-content p {
        font-size: 0.95rem;
    }
    
    .legal-content ul,
    .legal-content ol {
        padding-left: 1.2rem;
    }
}

/* iPhone SE and very small screens */
@media (max-width: 375px) {
    .legal-hero {
        height: 50vh;
        margin-top: 60px;
        padding: 2rem 0.5rem;
    }
    
    .legal-hero .hero-content {
        padding: 1.5rem 0.5rem;
    }
    
    .legal-hero .hero-logo img {
        height: 50px;
    }
    
    .legal-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .legal-hero p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .legal-content {
        padding: 1.2rem 0.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
    
    .legal-content p {
        font-size: 0.9rem;
    }
}

/* Cart Badge Styles - Minimalist & Clean */
.cart-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -24px;
    background: var(--accent);
    color: var(--snow);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 12px;
    border: 2px solid var(--dark-surface);
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(233, 64, 143, 0.25);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Badge states for different quantities */
.cart-badge[data-count="0"] {
    display: none;
}

.cart-badge[data-count="1"] {
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(233, 64, 143, 0.25);
}

.cart-badge[data-count="2"],
.cart-badge[data-count="3"] {
    background: linear-gradient(135deg, var(--accent) 0%, #E55A8F 100%);
    box-shadow: 0 2px 8px rgba(233, 64, 143, 0.3);
}

.cart-badge[data-count="4"],
.cart-badge[data-count="5"] {
    background: linear-gradient(135deg, var(--accent) 0%, #E9408F 100%);
    box-shadow: 0 2px 8px rgba(233, 64, 143, 0.35);
}

.cart-badge[data-count="6"],
.cart-badge[data-count="7"],
.cart-badge[data-count="8"],
.cart-badge[data-count="9"] {
    background: linear-gradient(135deg, var(--accent) 0%, #E9408F 100%);
    box-shadow: 0 2px 8px rgba(233, 64, 143, 0.4);
}

.cart-badge[data-count="10"] {
    background: linear-gradient(135deg, var(--accent) 0%, #E9408F 100%);
    box-shadow: 0 2px 8px rgba(233, 64, 143, 0.5);
    animation: pulse 2s infinite;
}

/* Pulse animation for high quantities */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(233, 64, 143, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(233, 64, 143, 0.6);
    }
}

/* Navigation Cart Link */
.nav-links a[href="cart.php"] {
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a[href="cart.php"]:hover {
    transform: translateY(-1px);
}

.nav-links a[href="cart.php"]:hover .cart-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(233, 64, 143, 0.4);
}

/* Responsive adjustments for cart badge */
@media (max-width: 768px) {
    .cart-badge {
        top: -6px;
        right: -20px;
        font-size: 0.7rem;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .cart-badge {
        top: -5px;
        right: -18px;
        font-size: 0.65rem;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-width: 1.5px;
    }
}

