/* Accordion Common Styles - Shared by Terms, FAQs, and Privacy Policy Pages */

/* Font Face Declarations */
@font-face {
    font-family: 'IvyPresto Headline';
    src: url('../typography/Regular IvyPresto.otf.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IvyPresto Headline';
    src: url('../typography/italic Regular IvyPresto.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'IvyPresto Headline';
    src: url('../typography/Bold IvyPresto.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #333;
}

.terms {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 60px;
}

.terms__title {
    font-family: 'IvyPresto Headline', serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: 0.01em;
    text-align: left;
    margin-bottom: 3rem;
    max-width: 1100px;
}

.terms__title-regular {
    font-style: normal;
    color: #000;
}

.terms__title-italic {
    font-style: italic;
    color: #C80180;
}

.terms__content {
    max-width: 1100px;
}

.terms__intro {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin-bottom: 3rem;
    color: #666;
}

/* Accordion Styles */
.accordion {
    margin-top: 3rem;
}

.accordion__item {
    background: #FAFAF8;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid #D4D2E3;
}

.accordion__item:last-child {
    border-bottom: none;
}

.accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion__header:hover {
    background-color: #f8f9fa;
}

.accordion__number {
    font-family: 'IvyPresto Headline', serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 50px;
    letter-spacing: 0;
    color: #C80180;
    margin-right: 2rem;
    min-width: 60px;
}

.accordion__title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: 0;
    color: #000;
    flex: 1;
}

.accordion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.accordion__icon svg {
    width: 38px;
    height: 38px;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem 0 calc(60px + 4rem);
}

.accordion__item.active .accordion__content {
    max-height: 1000px;
    padding: 0 2rem 2rem calc(60px + 4rem);
}

.accordion__content p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0;
    margin-bottom: 1rem;
    color: #333;
}

.accordion__content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.accordion__content ul li {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    color: #333;
}

.accordion__content a {
    color: #C80180;
    text-decoration: none;
}

.accordion__content a:hover {
    text-decoration: underline;
}

.accordion__content strong {
    font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .terms {
        padding: 100px 20px 40px;
    }
    
    .terms__title {
        font-size: 48px;
    }
    
    .accordion__header {
        padding: 1.5rem;
        flex-wrap: wrap;
        position: relative;
    }
    
    .accordion__number {
        font-size: 24px;
        margin-right: 0;
        min-width: auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .accordion__title {
        font-size: 16px;
        width: calc(100% - 50px);
    }
    
    .accordion__icon {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .accordion__icon svg {
        width: 24px;
        height: 24px;
    }
    
    .accordion__content {
        padding: 0 1.5rem;
    }
    
    .accordion__item.active .accordion__content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .accordion__content p,
    .accordion__content ul li {
        font-size: 14px;
    }
    
    .terms__intro {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .terms__title {
        font-size: 36px;
    }
    
    .accordion__number {
        font-size: 20px;
        margin-right: 0.75rem;
        min-width: 35px;
    }
    
    .accordion__title {
        font-size: 14px;
    }
    
    .accordion__content p,
    .accordion__content ul li,
    .terms__intro {
        font-size: 13px;
    }
}

@media screen and (max-width: 425px) {
    .terms {
        padding: 100px 20px 40px;
    }
}

@media screen and (max-width: 375px) {
    .terms {
        padding: 100px 20px 40px;
    }
}
