/* Terms of Service: Same-to-same design and layout as Squarespace terms-of-service page */

.terms-section {
    background-color: rgb(223, 206, 194);
    /* Warm sandy beige background */
    margin-top: 103px;
    /* Clear the fixed desk-nav header on desktop */
    padding: 80px 0;
    font-family: var(--primary-font, 'Degular', sans-serif);
}

.terms-content-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.terms-content h2 {
    font-family: var(--heading-font, var(--secondary-font, 'ohno-blazeface', sans-serif));
    font-size: 65px;
    /* Display font size */
    font-weight: 700;
    text-transform: none;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
    color: #b65a2e;
    /* Brand dark green/teal color */
    line-height: 1.2;
}

.terms-content h4 {
    font-family: var(--heading-font, var(--secondary-font, 'ohno-blazeface', sans-serif));
    font-size: 38px;
    font-weight: 700;
    text-transform: none;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #b65a2e;
    /* Brand dark green/teal color */
    line-height: 1.3;
}

.terms-content p {
    font-family: var(--primary-font, 'Degular', sans-serif);
    font-size: 18px;
    /* Matching the body readability size */
    line-height: 1.7;
    color: #b65a2e;
    /* Brand dark green/teal color */
    margin-bottom: 25px;
    font-weight: 400;
    text-align: left;
    white-space: pre-wrap;
}

.terms-content a {
    color: #b65a2e;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.terms-content a:hover {
    opacity: 0.8;
}

/* Center code container at the bottom */
.terms-content pre {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-top: 60px;
    text-align: center;
    font-family: var(--primary-font, 'Degular', sans-serif);
    font-size: 18px;
    line-height: 1.7;
    color: #b65a2e;
}

.terms-content code {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: transparent;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .terms-section {
        margin-top: 80px;
        /* Clear the mobile header */
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .terms-content h2 {
        font-size: 38px;
        margin-bottom: 30px;
    }

    .terms-content h4 {
        font-size: 20px;
        margin-top: 35px;
    }

    .terms-content p {
        font-size: 16px;
    }

    .terms-content pre {
        font-size: 16px;
        margin-top: 40px;
    }
}