* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.75;
    color: #333;
    background: #f5f6fa;
}

header {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.2);
}

.terms-hero {
    background: linear-gradient(135deg, #2d3436 0%, #b2bec3 100%), url('img3_weight_scale.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 70px 2rem;
    text-align: center;
    color: white;
}

.terms-hero h1 {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.terms-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
}

.accordion-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem 2rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-header h2 {
    color: #2d3436;
    font-size: 1.3rem;
    font-weight: 600;
}

.accordion-header .icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.accordion-header .icon::before,
.accordion-header .icon::after {
    content: '';
    position: absolute;
    background: #636e72;
    transition: transform 0.3s ease;
}

.accordion-header .icon::before {
    width: 16px;
    height: 2px;
    top: 11px;
    left: 4px;
}

.accordion-header .icon::after {
    width: 2px;
    height: 16px;
    top: 4px;
    left: 11px;
}

.accordion-item.active .accordion-header .icon::after {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 0 2rem 2rem;
}

.accordion-body p {
    color: #555;
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

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

.sub-list {
    list-style: none;
    margin: 1rem 0;
}

.sub-list li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: #555;
    font-size: 0.98rem;
}

.sub-list li::before {
    content: "•";
    color: #636e72;
    position: absolute;
    left: 0.5rem;
    font-size: 1.2rem;
}

.highlight-box {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #636e72;
}

.highlight-box p {
    margin-bottom: 0;
    color: #666;
}

.numbered-section {
    counter-reset: terms-counter;
    list-style: none;
    margin: 1.5rem 0;
}

.numbered-section li {
    counter-increment: terms-counter;
    padding: 0.8rem 0;
    padding-left: 3rem;
    position: relative;
    color: #555;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

.numbered-section li:last-child {
    border-bottom: none;
}

.numbered-section li::before {
    content: counter(terms-counter);
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 1.8rem;
    height: 1.8rem;
    background: #636e72;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 1.8rem;
    font-size: 0.85rem;
    font-weight: bold;
}

.agreement-section {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: white;
    padding: 3rem 2rem;
    margin-top: 2rem;
    border-radius: 12px;
    text-align: center;
}

.agreement-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.agreement-section p {
    font-size: 1.05rem;
    opacity: 0.95;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

footer {
    background: #2d3436;
    color: white;
    padding: 2rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: #b2bec3;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .accordion-header {
        padding: 1.2rem 1.5rem;
    }

    .accordion-body {
        padding: 0 1.5rem 1.5rem;
    }

    .terms-hero h1 {
        font-size: 2rem;
    }
}
