/* TERMS & CONDITIONS - FRIENDLY-LEGAL STYLE */
.terms-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    line-height: 1.7;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    position: relative;
}

/* Mobile responsive layout */
@media (max-width: 640px) {
    .terms-container {
        max-width: 100%;
        margin: 1.5rem;
        padding: 1.75rem 1.25rem;
        box-shadow: var(--shadow-md);
    }
}

/* Section headings with icons */
.terms-container h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-gray-800);
    font-size: 1.5rem;
    line-height: 1.3;
}

.terms-container h2::before {
    font-size: 1.25rem;
    color: var(--color-primary);
}

/* Paragraphs */
.terms-container p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    color: var(--color-gray-700);
    text-align: justify;
}

/* Lists */
.terms-container ul {
    margin: 0.75rem 0 1rem 1.5rem;
    padding: 0;
    color: var(--color-gray-700);
}

.terms-container ul li {
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.2rem;
}

.terms-container ul li::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0;
}

/* Links */
.terms-container a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.terms-container a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Divider for visual breaks */
.terms-container .divider {
    border-bottom: 1px solid var(--color-gray-300);
    margin: 2rem 0;
}

/* Emphasis for strong text */
.terms-container strong {
    color: var(--color-gray-900);
}

/* Footer / Contact */
.terms-container address {
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-style: normal;
    line-height: 1.6;
    text-align: center;
}

/* Soft background accent for subsections */
.terms-container .subsection {
    background-color: var(--color-gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    transition: background-color 0.2s ease;
}

.terms-container .subsection:hover {
    background-color: var(--color-gray-100);
}

/* Center container vertically on large screens */
@media (min-width: 641px) {
    body.terms-page {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 3rem 0;
    }
}

/* Mobile padding adjustment */
@media (max-width: 640px) {
    body.terms-page {
        padding: 1.25rem 0;
    }

    .terms-container h2 {
        font-size: 1.25rem;
    }
}