/* Terms Page - Premium Design orientiert an Vision-Seite */

.terms-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.terms-hero-section {
    text-align: center;
    padding: 100px 40px;
    margin-bottom: 80px;
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--color-black-rgba-015), 0 0 30px var(--color-brand-primary-rgba-015);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-background-primary-rgba-015);
}

.terms-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, var(--color-background-primary-rgba-008) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-background-primary-rgba-008) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.terms-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, var(--color-background-primary-rgba-006) 0%, transparent 40%),
                radial-gradient(circle at 70% 60%, var(--color-brand-accent-rgba-008) 0%, transparent 40%);
    pointer-events: none;
}

.terms-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.terms-hero-headline {
    font-family: var(--font-family-primary);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 35px 0;
    letter-spacing: -1px;
    color: var(--color-background-primary);
    text-shadow: 0 2px 12px var(--color-black-rgba-025);
    position: relative;
    display: inline-block;
    width: 100%;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.terms-hero-headline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-complementary-primary) 0%, var(--color-complementary-secondary) 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--color-complementary-primary-rgba-04);
}

.terms-hero-subheadline {
    font-family: var(--font-family-primary);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    color: var(--color-dark-text-light);
}

.terms-content {
    padding: 0;
    margin-bottom: 80px;
}

.terms-card {
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
    border: 1px solid var(--color-background-primary-rgba-015);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--color-black-rgba-015), 0 0 15px var(--color-brand-primary-rgba-008);
    transition: all 0.3s ease;
    position: relative;
}

.terms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, var(--color-background-primary-rgba-008) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.terms-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-background-primary-rgba-03);
    box-shadow: 0 8px 30px var(--color-black-rgba-02), 0 0 25px var(--color-brand-primary-rgba-02);
}

.terms-card:hover::before {
    opacity: 1;
}

.terms-card-header {
    padding: 40px;
    border-bottom: 1px solid var(--color-background-primary-rgba-015);
    background: linear-gradient(135deg, var(--color-brand-secondary) 0%, var(--color-brand-accent) 100%);
    position: relative;
    z-index: 1;
}

.terms-card-header-title {
    margin: 0;
    color: var(--color-background-primary);
    font-family: var(--font-family-primary);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 1px 8px var(--color-black-rgba-02);
}

.terms-card-body {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.terms-section {
    margin-bottom: 30px;
    padding: 30px;
    background: var(--color-background-primary-rgba-005);
    border-radius: 12px;
    border: 1px solid var(--color-background-primary-rgba-01);
    transition: all 0.3s ease;
}

.terms-section:hover {
    background: var(--color-background-primary-rgba-008);
    border-color: var(--color-background-primary-rgba-02);
    transform: translateY(-2px);
}

.terms-section-title {
    font-family: var(--font-family-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--color-background-primary);
    text-shadow: 0 1px 6px var(--color-black-rgba-02);
}

.terms-section-text {
    font-family: var(--font-family-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 15px 0;
    color: var(--color-dark-text-primary);
}

.terms-section-text:last-child {
    margin-bottom: 0;
}

.terms-section-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.terms-section-list li {
    font-family: var(--font-family-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-dark-text-primary);
    padding: 8px 0 8px 25px;
    position: relative;
}

.terms-section-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-complementary-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.terms-section-content {
    color: var(--color-dark-text-primary);
}

.terms-section-content a {
    color: var(--color-complementary-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-section-content a:hover {
    color: var(--color-complementary-secondary);
    text-decoration: underline;
}

.terms-alert {
    padding: 20px;
    border-radius: 8px;
    background: var(--color-background-primary-rgba-005);
    border: 1px solid var(--color-background-primary-rgba-01);
}

.terms-alert-info {
    background: var(--color-info-rgba-01);
    border-color: var(--color-info-rgba-02);
}

.terms-alert * {
    color: var(--color-dark-text-primary);
}

.terms-navigation-link-small {
    font-family: var(--font-family-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-dark-text-secondary);
}

.terms-navigation-link-small strong {
    color: var(--color-dark-text-primary);
    font-weight: 600;
}


/* Tablet Landscape (1024px - 1366px) */
@media (max-width: 1366px) {
    .terms-container {
        padding: 0 15px;
    }
    
    .terms-hero-section {
        padding: 90px 30px;
        margin-bottom: 70px;
    }
    
    .terms-content {
        margin-bottom: 70px;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) {
    .terms-container {
        padding: 0 10px;
    }
    
    .terms-hero-section {
        padding: 70px 25px;
        margin-bottom: 60px;
    }
    
    .terms-hero-headline {
        font-size: 2.8rem;
        margin: 0 0 30px 0;
    }
    
    .terms-hero-subheadline {
        font-size: 1.25rem;
    }
    
    .terms-content {
        margin-bottom: 60px;
    }
    
    .terms-card-header {
        padding: 35px;
    }
    
    .terms-card-body {
        padding: 35px;
    }
    
    .terms-section {
        padding: 25px;
    }
}

/* Mobile Landscape & Large Mobile (576px - 767px) */
@media (max-width: 767px) {
    .terms-hero-section {
        padding: 50px 20px;
        margin-bottom: 50px;
        border-radius: 12px;
    }
    
    .terms-hero-headline {
        font-size: 1.7rem;
        margin: 0 0 20px 0;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .terms-hero-subheadline {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .terms-content {
        margin-bottom: 50px;
    }
    
    .terms-card {
        border-radius: 14px;
    }
    
    .terms-card-header {
        padding: 30px 25px;
    }
    
    .terms-card-header-title {
        font-size: 1.5rem;
    }
    
    .terms-card-body {
        padding: 30px 25px;
    }
    
    .terms-section {
        padding: 25px 20px;
        margin-bottom: 24px;
    }
    
    .terms-section-title {
        font-size: 1.2rem;
        margin: 0 0 12px 0;
    }
    
    .terms-section-text {
        font-size: 1rem;
        line-height: 1.65;
    }
}

/* Small Mobile (max 575px) */
@media (max-width: 575px) {
    .terms-container {
        padding: 0;
    }
    
    .terms-hero-section {
        padding: 40px 18px;
        margin-bottom: 40px;
        border-radius: 12px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .terms-hero-headline {
        font-size: 1.4rem;
        margin: 0 0 18px 0;
        letter-spacing: -0.5px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .terms-hero-subheadline {
        font-size: 0.95rem;
    }
    
    .terms-content {
        margin-bottom: 40px;
    }
    
    .terms-card {
        border-radius: 12px;
    }
    
    .terms-card-header {
        padding: 25px 20px;
    }
    
    .terms-card-header-title {
        font-size: 1.3rem;
    }
    
    .terms-card-body {
        padding: 25px 20px;
    }
    
    .terms-section {
        padding: 20px 18px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .terms-section-title {
        font-size: 1.1rem;
        margin: 0 0 10px 0;
    }
    
    .terms-section-text {
        font-size: 0.95rem;
        line-height: 1.65;
    }
}

/* Extra Small Mobile (max 400px) */
@media (max-width: 400px) {
    .terms-hero-headline {
        font-size: 1.2rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .terms-hero-subheadline {
        font-size: 0.9rem;
    }
    
    .terms-card-header {
        padding: 22px 18px;
    }
    
    .terms-card-header-title {
        font-size: 1.2rem;
    }
    
    .terms-card-body {
        padding: 22px 18px;
    }
    
    .terms-section {
        padding: 18px 16px;
    }
    
    .terms-section-title {
        font-size: 1.05rem;
    }
    
    .terms-section-text {
        font-size: 0.9rem;
    }
}
