.terms-page {
    padding: 64px 20px 80px;
    background: #faf8f6;
}

.terms-page__container {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.terms-page__header {
    max-width: 760px;
    margin-bottom: 38px;
}

.terms-page__eyebrow {
    margin: 0 0 8px;
    color: #9f6f7c;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.terms-page__header h1 {
    margin: 0 0 14px;
    color: #2f2926;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.terms-page__header p {
    margin: 0;
    color: #655b57;
    font-size: 1.05rem;
    line-height: 1.7;
}

.terms-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.terms-nav {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #eadfd8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(47, 41, 38, 0.06);
}

.terms-nav a {
    padding: 11px 12px;
    color: #5f3f47;
    text-decoration: none;
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.terms-nav a:hover,
.terms-nav a:focus {
    background: #f2e5e9;
    color: #3f2930;
}

.terms-content {
    display: grid;
    gap: 22px;
}

.terms-card {
    scroll-margin-top: 24px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #eadfd8;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(47, 41, 38, 0.05);
}

.terms-card h2 {
    margin: 0 0 18px;
    color: #5f3f47;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
}

.terms-card h3 {
    margin: 24px 0 8px;
    color: #3f3733;
    font-size: 1.05rem;
}

.terms-card p {
    margin: 0 0 15px;
    color: #544b47;
    line-height: 1.75;
}

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

.terms-card address {
    color: #544b47;
    font-style: normal;
    line-height: 1.8;
}

.terms-card a {
    color: #815764;
}

@media (max-width: 820px) {
    .terms-page {
        padding: 42px 16px 60px;
    }

    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .terms-card {
        padding: 24px;
    }
}

@media (max-width: 520px) {
    .terms-nav {
        grid-template-columns: 1fr;
    }

    .terms-card {
        padding: 20px;
        border-radius: 12px;
    }
}