/* Import common styles */
@import 'common/base.css';
@import 'common/header.css';
@import 'common/navigation.css';
@import 'common/footer.css';

/* Main page styles */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: #0f0f0f;
}

.container-terms {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.terms-container {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.1);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.page-title {
    color: #d4af37;
    font-size: clamp(1.6rem, 2.2vw + 1rem, 2.25rem);
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    line-height: 1.2;
}

.page-title i {
    font-size: 1.8rem;
    color: #d4af37;
}

.page-subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

/* Terms Content */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: clamp(1.25rem, 2vw, 2.25rem);
    position: relative;
    padding-left: clamp(2rem, 2.5rem + 0.5vw, 3.5rem);
}

.section-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: #d4af37;
    color: #0f0f0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.section-content {
    background: #2a2a2a;
    border-radius: 8px;
    padding: clamp(1.25rem, 2vw, 2rem);
    border-left: 3px solid #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.subsection-title {
    color: #d4af37;
    font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.subsection {
    margin-bottom: 2rem;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-header {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.subsection p {
    color: #e0e0e0;
    line-height: 1.75;
    margin-bottom: 0.9rem;
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1rem);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.subsection p:last-child {
    margin-bottom: 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    color: #d4af37;
    font-size: clamp(1.3rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: none;
}

.section-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.section-meta span {
    color: #a0a0a0;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Lists */
.rules-list {
    color: #e0e0e0;
    line-height: 1.7;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.rules-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.rules-list li::marker {
    color: #d4af37;
}

.nested-list {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.nested-list li::marker {
    color: #f4d03f;
}

/* Data Types */
.data-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1rem 0;
}

.data-type h5 {
    color: #f4d03f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

/* Prohibited Content */
.prohibited-content {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.prohibited-list li {
    color: #ff6b6b;
}

/* Premium Info */
.premium-info {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* Refund Info */
.refund-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.no-refund {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 1rem;
}

.no-refund-list li {
    color: #ff6b6b;
}

/* Liability Info */
.liability-info {
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* Highlight Text */
.highlight-text {
    background: rgba(212, 175, 55, 0.15);
    border-left: 4px solid #d4af37;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    color: #f4d03f !important;
    font-weight: 500;
}

/* Terms Footer */
.terms-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.footer-content-terms {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.validity {
    color: #a0a0a0;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.company-info {
    color: #d4af37;
}

.company-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.company-info p:first-child {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Responsive Design */

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    .terms-container {
        padding: 2.5rem 2rem;
        margin: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-title i {
        font-size: 1.7rem;
    }
    
    .terms-section {
        padding-left: 3.2rem;
    }
    
    .section-number {
        width: 2.3rem;
        height: 2.3rem;
        font-size: 1.1rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .main {
        padding: 1.5rem 0;
    }
    
    .terms-container {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
        border-radius: 8px;
        max-width: 100%;
    }
    
    .page-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title i {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .terms-section {
        margin-bottom: 2rem;
        padding-left: 1.5rem;
    }
    
    .section-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.95rem;
    }
    
    .section-content {
        padding: 1.5rem;
        border-radius: 4px;
    }
    
    .subsection-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .subsection-header {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .subsection p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .data-types {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-meta span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .rules-list {
        padding-left: 1rem;
    }
    
    .terms-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .footer-content-terms {
        padding: 1.5rem;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .main {
        padding: 1rem 0;
    }
    
    .container-terms {
        padding: 0 0.5rem;
    }
    
    .terms-container {
        padding: 1.5rem 1rem;
        margin: 0.5rem auto;
        border-radius: 6px;
        max-width: 100%;
    }
    
    .page-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.6rem;
        gap: 0.3rem;
    }
    
    .page-title i {
        font-size: 1.3rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .terms-section {
        margin-bottom: 1.5rem;
        padding-left: 0;
    }
    
    .section-number {
        position: relative;
        left: auto;
        top: auto;
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
        margin: 0 0 0.6rem 0;
        display: inline-flex;
    }
    
    .section-content {
        padding: 1.2rem;
        border-radius: 4px;
    }
    
    .subsection-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .subsection-header {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .subsection p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .rules-list {
        font-size: 0.9rem;
        padding-left: 0.8rem;
        margin: 0.8rem 0;
    }
    
    .rules-list li {
        margin-bottom: 0.3rem;
    }
    
    .data-types {
        gap: 0.8rem;
    }
    
    .section-meta span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .terms-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .footer-content-terms {
        padding: 1.2rem;
    }
    
    .validity {
        font-size: 0.85rem;
    }
    
    .company-info p {
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .terms-container {
        padding: 1rem 0.8rem;
        margin: 0.3rem auto;
        max-width: 100%;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .page-title i {
        font-size: 1.2rem;
    }
    
    .page-subtitle {
        font-size: 0.85rem;
    }
    
    .terms-section {
        padding-left: 0;
    }
    
    .section-number {
        position: relative;
        left: auto;
        top: auto;
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: inline-flex;
    }
    
    .section-content {
        padding: 1rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
    
    .subsection-header {
        font-size: 0.95rem;
    }
    
    .subsection p {
        font-size: 0.85rem;
    }
    
    .rules-list {
        font-size: 0.85rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .main {
        padding: 1rem 0;
    }
    
    .page-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .terms-section {
        margin-bottom: 1.5rem;
    }
    
    .terms-footer {
        margin-top: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .main {
        background: white;
        padding: 0;
    }
    
    .terms-container {
        background: white;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .page-title {
        color: #000;
        text-shadow: none;
    }
    
    .section-content {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .subsection-title,
    .subsection-header {
        color: #000;
    }
    
    .subsection p,
    .rules-list {
        color: #000;
    }
    
    .section-number {
        background: #f0f0f0;
        color: #000;
        box-shadow: none;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .subsection-header {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .rules-list li {
        padding: 0.3rem 0;
    }
    
    .section-meta span {
        padding: 0.6rem 1rem;
        margin: 0.3rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .section-number {
        border: 0.5px solid rgba(212, 175, 55, 0.2);
    }
    
    .terms-container {
        border: 0.5px solid rgba(212, 175, 55, 0.1);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .page-title i {
        animation: none;
    }
    
    * {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .terms-container {
        background: #1a1a1a;
        border-color: rgba(212, 175, 55, 0.2);
    }
    
    .section-content {
        background: #2a2a2a;
    }
    
    .footer-content-terms {
        background: #2a2a2a;
        border-color: rgba(212, 175, 55, 0.2);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .terms-container {
        border: 2px solid #d4af37;
    }
    
    .section-content {
        border-left: 6px solid #d4af37;
    }
    
    .subsection-title,
    .subsection-header {
        text-decoration: underline;
    }
}
