/* Legal Pages Shared Styles - obchodni-podminky.php, reklamace.php, zpracovani-udaju.php */

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

main {
    padding: 0;
    max-width: 100%;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.terms-hero {
    background: linear-gradient(135deg, rgba(214, 69, 69, 0.95) 0%, rgba(180, 55, 55, 0.95) 100%);
    color: white;
    padding: 120px 2rem 80px;
    margin-top: 75px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(240, 200, 105, 0.15), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.terms-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.terms-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
    animation: fadeIn 0.8s ease-out;
}

.terms-hero p {
    font-size: 1.3rem;
    color: white;
    opacity: 1;
    margin-bottom: 0;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

/* Content Container */
.terms-content {
    max-width: 1200px;
    margin: -40px auto 4rem;
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 2;
}

/* Sections */
.terms-section {
    margin-bottom: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.terms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.terms-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1rem;
    font-weight: 700;
}

.terms-section h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    padding-left: 0;
}

.terms-section p {
    color: #333;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.8;
}

.terms-section ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style-type: none;
}

.terms-section li {
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.terms-section li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.terms-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(240, 200, 105, 0.1) 0%, rgba(214, 69, 69, 0.08) 100%);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0 1.5rem 1rem;
    border-radius: 8px;
}

.info-box p {
    margin: 0;
    color: #2c3e50;
    padding-left: 0;
}

/* General elements (for zpracovani-udaju.php compatibility) */
section {
    margin-bottom: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

section:hover {
    transform: translateY(-3px);
}

h1 {
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 1rem;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    font-weight: 700;
}

ul {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

li:hover {
    background: rgba(214, 69, 69, 0.03);
    border-radius: 8px;
    padding-left: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #555;
}

strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .terms-hero {
        padding: 100px 1.5rem 60px;
        margin-top: 60px;
    }

    .terms-hero h1 {
        font-size: 2.2rem;
    }

    .terms-hero p {
        font-size: 1.1rem;
    }

    .terms-content {
        padding: 0 1rem 1rem;
        margin-top: -30px;
    }

    .terms-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.5rem;
        padding-left: 0.8rem;
    }

    .terms-section h3 {
        font-size: 1.2rem;
    }

    .terms-section p,
    .terms-section ul {
        padding-left: 0.8rem;
    }

    .terms-section li {
        padding-left: 1.5rem;
    }

    .info-box {
        margin-left: 0;
        padding: 1rem;
    }

    .info-box p {
        padding-left: 0;
    }

    main {
        padding: 1rem 0 1rem 0;
    }

    h1 {
        font-size: 2rem;
        padding: 0.5rem 1rem;
        margin: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        padding-left: 1rem;
    }

    section {
        padding: 1.5rem;
        margin: 1rem;
    }

    ul {
        padding-left: 1.5rem;
    }

    li {
        margin-bottom: 0.8rem;
        padding-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .terms-hero h1 {
        font-size: 1.8rem;
    }

    .terms-hero p {
        font-size: 1rem;
    }

    .terms-hero {
        padding: 80px 1rem 50px;
    }

    .terms-section {
        padding: 1rem;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 1.5rem;
        margin: 0.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    main {
        padding: 0;
    }

    section {
        padding: 1rem;
        margin: 0.5rem;
    }
}