/**
 * Obchodní podmínky - Styly
 * JERGONLAB 2025
 * Moderní design konzistentní se zásadami ochrany údajů
 */

/* ========================================
   Hlavní layout
   ======================================== */
.op-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    padding-top: 80px;
}

.op-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* ========================================
   Hero sekce
   ======================================== */
.op-hero {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease;
}

.op-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: #0A0A0A;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.op-title .highlight {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.op-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 500;
}

/* ========================================
   Provider box
   ======================================== */
.provider-box {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.provider-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-icon svg {
    stroke: #D4AF37;
}

.provider-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0A0A0A;
    margin-bottom: 15px;
}

.provider-details {
    color: #0A0A0A;
}

.detail-row {
    padding: 5px 0;
    font-size: 1rem;
}

.detail-row strong {
    font-weight: 700;
}

.separator {
    margin: 0 10px;
    color: rgba(10, 10, 10, 0.3);
}

.contact-row {
    margin-top: 10px;
    display: flex;
    gap: 20px;
}

.contact-row a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0A0A0A;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-row a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-row svg {
    stroke: #0A0A0A;
}

/* ========================================
   Content wrapper
   ======================================== */
.op-content {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    padding: 50px;
}

/* ========================================
   Rychlá navigace (sidebar)
   ======================================== */
.quick-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.quick-nav h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 20px;
}

.quick-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav li {
    margin-bottom: 2px;
}

.quick-nav a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.quick-nav a:hover {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    border-left-color: rgba(212, 175, 55, 0.3);
}

.quick-nav a.active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #D4AF37;
    font-weight: 600;
}

/* ========================================
   Hlavní obsah
   ======================================== */
.content-main {
    max-width: 800px;
}

.content-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 800;
    color: #0A0A0A;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid #D4AF37;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: #D4AF37;
    flex-shrink: 0;
}

/* ========================================
   Clause items
   ======================================== */
.clause-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.clause-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #D4AF37;
    flex-shrink: 0;
    margin-top: 2px;
}

.clause-item p {
    flex: 1;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.clause-item ul {
    margin: 15px 0;
    padding-left: 0;
}

/* Letter list */
.letter-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.letter-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #444;
}

.letter-list li::before {
    content: attr(data-letter);
    position: absolute;
    left: 0;
    font-weight: 600;
    color: #D4AF37;
}

.letter-list li:nth-child(1)::before { content: 'a)'; }
.letter-list li:nth-child(2)::before { content: 'b)'; }
.letter-list li:nth-child(3)::before { content: 'c)'; }
.letter-list li:nth-child(4)::before { content: 'd)'; }
.letter-list li:nth-child(5)::before { content: 'e)'; }
.letter-list li:nth-child(6)::before { content: 'f)'; }
.letter-list li:nth-child(7)::before { content: 'g)'; }
.letter-list li:nth-child(8)::before { content: 'h)'; }
.letter-list li:nth-child(9)::before { content: 'i)'; }

/* ========================================
   Definitions grid
   ======================================== */
.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.definition-card {
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.definition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.definition-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 10px;
}

.definition-card p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Services list
   ======================================== */
.services-list {
    background: #FAFAFA;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item svg {
    flex-shrink: 0;
    stroke: #10B981;
    margin-top: 2px;
}

.service-item span {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

/* ========================================
   Price info box
   ======================================== */
.price-info-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.price-info-box h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 25px;
    text-align: center;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.price-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.price-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.price-icon svg {
    stroke: #D4AF37;
}

.price-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.price-card p {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 15px;
}

.price-highlight {
    font-size: 1.375rem;
    font-weight: 800;
    color: #D4AF37;
}

/* ========================================
   Warning box
   ======================================== */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #FFF5F5, #FFFAFA);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.warning-box > svg {
    flex-shrink: 0;
    stroke: #D4AF37;
    margin-top: 2px;
}

.warning-box p {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #444;
}

.warning-box strong {
    color: #0A0A0A;
    font-weight: 700;
}

.warning-box ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.warning-box li {
    padding: 5px 0;
    color: #666;
    font-size: 0.9375rem;
}

.warning-box li::before {
    content: '→';
    margin-right: 10px;
    color: #D4AF37;
    font-weight: bold;
}

/* ========================================
   Ownership highlight
   ======================================== */
.ownership-highlight {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.ownership-highlight > svg {
    flex-shrink: 0;
    stroke: #0A0A0A;
}

.ownership-highlight h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 8px;
}

.ownership-highlight p {
    font-size: 1.125rem;
    color: #0A0A0A;
    margin: 0;
}

.ownership-highlight strong {
    font-weight: 800;
}

/* ========================================
   Info box
   ======================================== */
.info-box {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #D4AF37, #FFD700);
}

.info-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 8px 0;
    color: #444;
    font-size: 1rem;
}

.info-box li::before {
    content: '•';
    margin-right: 10px;
    color: #D4AF37;
    font-weight: bold;
}
/* ========================================
   Obligations grid
   ======================================== */
.obligations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.obligation-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #FAFAFA;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.obligation-card:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
    transform: translateX(5px);
}

.obligation-card svg {
    flex-shrink: 0;
    stroke: #10B981;
    margin-top: 2px;
}

.obligation-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.5;
}

/* ========================================
   Guarantee box
   ======================================== */
.guarantee-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid #10B981;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.guarantee-box > svg {
    flex-shrink: 0;
    stroke: #10B981;
}

.guarantee-box h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 8px;
}

.guarantee-box p {
    font-size: 1.125rem;
    color: #444;
    margin: 0;
}

.guarantee-box strong {
    color: #10B981;
    font-weight: 800;
}

/* ========================================
   Process timeline
   ======================================== */
.process-timeline {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
    padding: 20px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #FFD700, #D4AF37);
    z-index: 0;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border: 3px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    transform: scale(1.1);
}

.timeline-item:hover .timeline-icon svg {
    stroke: #FFFFFF;
}

.timeline-icon svg {
    stroke: #D4AF37;
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* ========================================
   GDPR box
   ======================================== */
.gdpr-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.02));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.gdpr-box > svg {
    flex-shrink: 0;
    stroke: #10B981;
}

.gdpr-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.gdpr-box p {
    font-size: 1rem;
    color: #444;
    margin: 0 0 10px 0;
}

.gdpr-box a {
    color: #D4AF37;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gdpr-box a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* ========================================
   Communication grid
   ======================================== */
.communication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.comm-card {
    text-align: center;
    padding: 25px;
    background: #FAFAFA;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.comm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
}

.comm-card svg {
    stroke: #D4AF37;
    margin-bottom: 15px;
}

.comm-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 8px;
}

.comm-card p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* ========================================
   Reference box
   ======================================== */
.reference-box {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.reference-box > svg {
    flex-shrink: 0;
    stroke: #D4AF37;
}

.reference-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.reference-box p {
    font-size: 1rem;
    color: #444;
    margin: 0 0 8px 0;
}

/* ========================================
   Signature section
   ======================================== */
.signature-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #E0E0E0;
    text-align: right;
}

.signature-date {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.signature-name {
    font-size: 1.125rem;
    color: #0A0A0A;
}

.signature-name strong {
    font-weight: 700;
}

/* ========================================
   Back button
   ======================================== */
.back-button-wrapper {
    text-align: center;
    margin-top: 60px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0A0A0A;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* ========================================
   Animace
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responzivní design
   ======================================== */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quick-nav {
        position: static;
        background: #FAFAFA;
        border-radius: 10px;
        padding: 25px;
    }
    
    .quick-nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .op-container {
        padding: 40px 20px;
    }
    
    .op-title {
        font-size: 32px;
    }
    
    .op-subtitle {
        font-size: 1.125rem;
    }
    
    .provider-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .provider-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .content-wrapper {
        padding: 30px 20px;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-number {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .clause-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .definitions-grid,
    .price-grid,
    .obligations-grid,
    .communication-grid {
        grid-template-columns: 1fr;
    }
    
    .ownership-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .warning-box,
    .guarantee-box,
    .gdpr-box,
    .reference-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .op-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    
    .provider-info h2 {
        font-size: 1.25rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .content-section p,
    .clause-item p {
        font-size: 1rem;
    }
    
    .back-button {
        padding: 14px 30px;
        font-size: 0.875rem;
    }
}

/* ========================================
   Print styles
   ======================================== */
@media print {
    .op-main {
        padding-top: 0;
    }
    
    .header,
    .quick-nav,
    .back-button-wrapper {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    .provider-box {
        page-break-after: always;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}