:root {
    --terms-primary: #FF7A95;
    --terms-ink: #373737;
    --terms-muted: #6f6f78;
    --terms-soft: #FCDDE5;
}

.terms-page {
    position: relative;
    z-index: 0;
    background: #ffffff;
    overflow-x: clip;
}

/* White header on the terms page */
.terms-page .site-header,
.terms-page .site-header--light {
    background: #ffffff;
}

/* Full-page geometric background (portrait, spans entire page) */
.terms-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/terms/Frame.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    /* opacity: 0.36; */
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Hero                                                               */
/* ------------------------------------------------------------------ */
.terms-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 340px;
    padding: 175px 48px 95px;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
}

.terms-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/community/hero-visual-1.png');
    background-size: cover;
    background-position: center 60%;
    transform: scaleX(-1);
    background-repeat: no-repeat;
}

.terms-hero__pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    z-index: -1;
    background-image: url('../images/community/hero-pattern.png');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.5;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.terms-hero__inner {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}

.terms-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    vertical-align: middle;
    color: #FF7A95;
}

.terms-hero__breadcrumb a {
    color: #FF7A95;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

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

.terms-hero__breadcrumb span[aria-hidden] {
    color: #FF7A95;
}

.terms-hero__title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 72px;
    line-height: 0.95;
    color: #ffffff;
}

.terms-hero__subtitle {
    max-width: 620px;
    font-weight: 400;
    margin: 16px 0 0;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: #FFFFFF;
}

/* ------------------------------------------------------------------ */
/* Content                                                            */
/* ------------------------------------------------------------------ */
.terms-content {
    position: relative;
    padding: 10px 24px 10px;
    overflow: hidden;
}

.terms-content__deco {
    display: none;
}

.terms-content__inner {
    position: relative;
    z-index: 1;
    max-width: 864px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 48px;
    border-radius: 24px;
    /* background: #ffffff; */
    /* box-shadow: 0 24px 60px rgba(55, 55, 55, 0.08); */
}

.terms-block {
    display: block;
}

.terms-block__title {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 36px;
    line-height: 1;
    color: var(--terms-ink);
}

.terms-block__text {
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--terms-muted);
}

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

.terms-rich-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--terms-muted);
}

.terms-rich-text> :first-child {
    margin-top: 0;
}

.terms-rich-text> :last-child {
    margin-bottom: 0;
}

.terms-rich-text ul,
.terms-rich-text ol {
    padding-left: 24px;
}

.terms-rich-text a {
    color: var(--terms-primary);
}

.terms-rich-text table {
    width: 100%;
    border-collapse: collapse;
}

.terms-rich-text th,
.terms-rich-text td {
    padding: 10px;
    border: 1px solid #e8dfe1;
}

/* Note / important box */
.terms-note {
    margin-top: 18px;
    padding: 20px 24px;
    border: 1px solid #F3F0F1;
    border-radius: 16px;
    background: #FBF9F9;
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    color: var(--terms-muted);
}

.terms-note__label {
    font-weight: 700;
    font-style: italic;
    color: var(--terms-ink);
}

/* Community rules */
.terms-rules {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terms-rule {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.terms-rule__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    /* border-radius: 12px; */
    /* background: var(--terms-soft); */
    color: var(--terms-primary);
}

.terms-rule__icon svg {
    width: 22px;
    height: 22px;
}

.terms-rule__body {
    flex: 1;
    min-width: 0;
}

.terms-rule__title {
    margin: 2px 0 6px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 19px;
    line-height: 1;
    color: var(--terms-ink);
}

.terms-rule__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.65;
    color: var(--terms-muted);
}

/* Two column row */
.terms-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

/* Privacy highlight */
.terms-highlight {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    border-radius: 16px;
    background: #FF7A950D;
    border: 1px solid #FF7A951A;
}

.terms-highlight__header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.terms-highlight__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--terms-primary);
    color: #ffffff;
}

.terms-highlight__icon svg {
    width: 24px;
    height: 24px;
}

.terms-highlight__title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    color: var(--terms-ink);
}

.terms-highlight__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.7;
    color: #6a5257;
}

.terms-highlight__text a {
    color: var(--terms-primary);
    font-weight: 700;
    text-decoration: none;
}

.terms-highlight__text a:hover {
    text-decoration: underline;
}

/* Prohibited activities */
.terms-prohibited {
    padding: 40px;
    border-radius: 16px;
    background: #373737;
    color: #ffffff;
}

.terms-prohibited__title {
    margin: 0 0 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    color: #ffffff;
}

.terms-prohibited__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 48px;
}

.terms-prohibited__item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}

.terms-prohibited__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.55);
}

.terms-prohibited__icon svg {
    width: 22px;
    height: 22px;
}

/* Single CKEditor document. Each direct list item is one numbered term. */
.terms-document>ol {
    counter-reset: terms-number;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-document>ol>li {
    counter-increment: terms-number;
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
}

.terms-document>ol>li:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
}

.terms-document>ol>li:nth-child(5) {
    grid-column: 2;
    grid-row: 4;
}

.terms-document>ol>li.terms-document__prose-only {
    counter-increment: none;
}

.terms-document>ol>li>h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: var(--terms-ink);
}

.terms-document>ol>li>h2::before {
    content: counter(terms-number) ". ";
}

.terms-document>ol>li>p,
.terms-document>ol>li>blockquote {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--terms-muted);
    margin-bottom: 5px;
}

.terms-document>ol>li>blockquote {
    margin: 24px 0 0;
    padding: 18px 22px;
    background: #fbf9f9;
    border: 1px solid #f3f0f1;
    border-radius: 16px;
    font-style: italic;
}

.terms-document>ol>li>blockquote p {
    margin: 0;
}

/* No. 3 — Community Rules */
.terms-document>ol>li:nth-child(3)>ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.terms-document>ol>li:nth-child(3)>ul>li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
    padding: 0;
    background: transparent;
    border: 0;
}

.terms-document>ol>li:nth-child(3)>ul>li::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.terms-document>ol>li:nth-child(3)>ul>li:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A95' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.2 2.9 7.8 7 9 4.1-1.2 7-4.8 7-9V6l-7-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.terms-document>ol>li:nth-child(3)>ul>li:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A95' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.2 2.9 7.8 7 9 4.1-1.2 7-4.8 7-9V6l-7-3Z'/%3E%3Cpath d='M12 3v17'/%3E%3C/svg%3E");
}

.terms-document>ol>li:nth-child(3)>ul>li:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A95' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5Z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E");
}

.terms-document>ol>li:nth-child(3) h3 {
    grid-column: 2;
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--terms-ink);
}

.terms-document>ol>li:nth-child(3) li p {
    grid-column: 2;
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--terms-muted);
}

.terms-document>ol>li:nth-child(3) {
    padding-bottom: 40px;
    border-bottom: 1px solid #f3f0f1;
}

/* No. 2 — Highlight box (pink, no icon) */
.terms-document>ol>li.terms-document__highlight-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    background: rgba(255, 122, 149, 0.05);
    border: 1px solid rgba(255, 122, 149, 0.1);
    border-radius: 16px;
}

.terms-document>ol>li.terms-document__highlight-box>h2 {
    margin: 0;
}

.terms-document>ol>li.terms-document__highlight-box>p {
    margin: 0;
}

.terms-document>ol>li.terms-document__highlight-box a {
    color: #ff7a95;
    font-weight: 700;
    text-decoration: none;
}

.terms-document>ol>li.terms-document__highlight-box a:hover {
    text-decoration: underline;
}

/* No. 6 — Privacy Policy */
.terms-document>ol>li:nth-child(6) {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    background: rgba(255, 122, 149, 0.05);
    border: 1px solid rgba(255, 122, 149, 0.1);
    border-radius: 16px;
}

.terms-document>ol>li:nth-child(6)>h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.terms-document>ol>li:nth-child(6)>h2::before {
    content: "";
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #ff7a95;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7.5a4 4 0 0 1 8 0V10'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

.terms-document>ol>li:nth-child(6)>p {
    margin: 0;
}

.terms-document>ol>li:nth-child(6) a {
    color: #ff7a95;
    font-weight: 700;
    text-decoration: none;
}

.terms-document>ol>li:nth-child(6) a:hover {
    text-decoration: underline;
}

/* No. 8 — Prohibited Activities */
.terms-document>ol>li:nth-child(8) {
    padding: 40px;
    background: #373737;
    border-radius: 16px;
}

.terms-document>ol>li:nth-child(8)>h2,
.terms-document>ol>li:nth-child(8)>p {
    color: #fff;
}

.terms-document>ol>li:nth-child(8)>ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 48px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.terms-document>ol>li:nth-child(8)>ul>li {
    position: relative;
    padding-left: 32px;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.82);
}

.terms-document>ol>li:nth-child(8)>ul>li::before {
    content: "×";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 22px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 992px) {
    .terms-hero {
        min-height: 300px;
        padding: 128px 32px 40px;
    }

    .terms-hero__title {
        font-size: 52px;
    }

    .terms-content {
        padding: 56px 24px 80px;
    }

    .terms-content__inner {
        gap: 64px;
        padding: 40px;
    }
}

@media (max-width: 640px) {
    .terms-hero {
        min-height: 260px;
        padding: 112px 20px 32px;
    }

    .terms-hero__title {
        font-size: 40px;
    }

    .terms-hero__subtitle {
        font-size: 15px;
    }

    .terms-content {
        padding: 0px 16px 0px;
    }

    .terms-content__inner {
        gap: 44px;
        padding: 28px 22px;
        border-radius: 20px;
    }

    .terms-document>ol {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .terms-document>ol>li>h2 {
        margin: 0 0 14px;
    }

    .terms-document>ol>li:nth-child(4),
    .terms-document>ol>li:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
    }

    .terms-document>ol>li:nth-child(3)>ul,
    .terms-document>ol>li:nth-child(8)>ul {
        grid-template-columns: 1fr;
    }

    .terms-document>ol>li:nth-child(3)>ul {
        gap: 10px;
    }

    .terms-document>ol>li:nth-child(3)>ul>li {
        grid-template-columns: 28px minmax(0, 1fr);
        column-gap: 16px;
    }

    .terms-document>ol>li:nth-child(3)>ul>li::before {
        width: 24px;
        height: 24px;
    }

    .terms-document>ol>li:nth-child(6),
    .terms-document>ol>li:nth-child(8),
    .terms-document>ol>li.terms-document__highlight-box {
        padding: 26px 22px;
    }

    .terms-block__title {
        font-size: 24px;
    }

    .terms-columns {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .terms-highlight {
        padding: 28px 22px;
        gap: 16px;
    }

    .terms-prohibited {
        padding: 26px 22px;
    }

    .terms-prohibited__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}