/* Nati Games — صفحه شرایط استفاده
   رنگ‌ها فقط از متغیرهای root.css گرفته می‌شوند. */

#body {
    background-color: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* =========================
   HEADER / NAV (مثل style.css)
========================= */

.header-1 {
    width: 95%;
    height: 90px;
    margin: 2.5% auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 9999999;
    background-color: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    border-radius: 24px;
}

.header-logo {
    width: 64px;
    margin-right: 20px;
    border-radius: 16px;
}

.header-nav-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.btn-menu-1 {
    width: 150px;
    height: 46px;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    background-color: transparent;
    color: var(--accent);
    transition: 0.25s ease;
}

.btn-menu-1:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.btn-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    cursor: pointer;
    background-color: var(--surface-2);
    transition: 0.25s ease;
    z-index: 10;
}

.btn-hamburger:hover,
.btn-hamburger.active {
    border-color: var(--accent);
}

.btn-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 5px;
    background-color: var(--text);
    transition: 0.25s ease;
}

.btn-hamburger.active span {
    background-color: var(--accent);
}

.btn-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.btn-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.btn-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   TERMS
========================= */

.sec-terms {
    width: 95%;
    margin: 0 auto 80px;
    padding: 70px 5% 80px;
    position: relative;
    overflow: hidden;
    background-color: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    border-radius: 36px;
}

.sec-terms::before {
    content: "";
    position: absolute;
    top: -250px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 70px solid color-mix(in srgb, var(--accent) 16%, transparent);
    pointer-events: none;
}

.terms-head {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.terms-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 16px;
    border-radius: 8px;
    background-color: var(--accent);
    color: var(--bg);
    font-size: 13px;
    font-weight: bold;
}

.terms-head h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.3;
}

.terms-head p {
    max-width: 560px;
    margin: 20px auto 0;
    color: color-mix(in srgb, var(--accent) 35%, var(--muted));
    font-size: 16px;
    line-height: 2;
}

.terms-updated {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
}

/* چیدمان: فهرست + متن */

.terms-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.terms-toc {
    position: sticky;
    top: 24px;
    flex: 0 0 240px;
    padding: 24px;
    background-color: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    border-radius: 24px;
}

.terms-toc h2 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 800;
}

.terms-toc h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 2px;
    border-radius: 10px;
    background-color: var(--accent);
}

.terms-toc ol {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.terms-toc li {
    counter-increment: toc;
}

.terms-toc li a {
    display: flex;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    transition: 0.25s ease;
}

.terms-toc li a::before {
    content: counter(toc);
    min-width: 18px;
    color: var(--accent);
    font-weight: bold;
}

.terms-toc li a:hover {
    background-color: var(--accent);
    color: var(--bg);
}

.terms-toc li a:hover::before {
    color: var(--bg);
}

.terms-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.term-item {
    padding: 32px 36px;
    scroll-margin-top: 24px;
    background-color: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    border-radius: 24px;
    transition: border-color 0.3s ease;
}

.term-item:hover,
.term-item:target {
    border-color: var(--accent);
}

.term-item h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
}

.term-num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 10px;
    background-color: var(--accent);
    color: var(--bg);
    font-size: 15px;
    font-weight: bold;
}

.term-item p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2.1;
}

.term-item p:last-child {
    margin-bottom: 0;
}

.term-item ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.term-item ul:last-child {
    margin-bottom: 0;
}

.term-item li {
    position: relative;
    padding-right: 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
}

.term-item li::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background-color: var(--accent);
}

.term-item strong {
    color: var(--text);
}

.term-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
}

.term-contact i {
    color: var(--accent);
}

/* =========================
   FOOTER (مثل style.css)
========================= */

.footer {
    position: relative;
    width: 95%;
    margin: 0 auto 40px;
    padding: 70px 5% 30px;
    overflow: hidden;
    background-color: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    border-radius: 32px;
}

.footer-top {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-brand {
    flex: 1.6;
    min-width: 260px;
}

.footer-logo {
    width: 64px;
    margin-bottom: 20px;
    border-radius: 16px;
}

.footer-brand p {
    max-width: 320px;
    margin: 0 0 24px;
    color: color-mix(in srgb, var(--accent) 30%, var(--muted));
    font-size: 14px;
    line-height: 1.9;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: var(--accent);
    color: var(--bg);
    font-size: 16px;
    transition: 0.25s ease;
}

.footer-socials a:hover {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
    color: var(--bg);
    transform: translateY(-3px);
}

.footer-col h4 {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 12px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 800;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 2px;
    border-radius: 10px;
    background-color: var(--accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li a {
    color: color-mix(in srgb, var(--accent) 30%, var(--muted));
    font-size: 14px;
    transition: 0.25s ease;
}

.footer-col ul li a:hover {
    padding-right: 5px;
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: color-mix(in srgb, var(--accent) 30%, var(--muted));
    font-size: 14px;
}

.footer-contact li i {
    color: var(--accent);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
}

.footer-bottom span {
    color: var(--accent);
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.footer-bottom div {
    flex: 1;
    height: 1px;
    background-color: var(--line);
}

.box-enamad {
    width: 100%;
    height: fit-content;
    margin-top: 30px;
    border-radius: 12px;
    background-color: #fff;
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .header-1 {
        height: 80px;
        padding: 0 15px;
    }

    .header-logo {
        width: 56px;
        margin-right: 10px;
    }

    .btn-hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 16px;
        background-color: var(--surface);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: 0.25s ease;
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu .row {
        flex-direction: column;
        gap: 8px;
    }

    .nav-menu .row>div {
        flex: 0 0 100%;
        width: 100% !important;
        max-width: 100%;
    }

    .btn-menu-1 {
        width: 100%;
    }

    .sec-terms {
        padding: 60px 4% 60px;
        border-radius: 28px;
    }

    .terms-layout {
        flex-direction: column;
    }

    .terms-toc {
        position: static;
        flex: none;
        width: 100%;
    }

    .terms-toc ol {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 60px 6% 30px;
        border-radius: 28px;
    }

    .footer-top {
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .sec-terms {
        width: 92%;
        padding: 50px 16px;
        border-radius: 24px;
    }

    .terms-head {
        margin-bottom: 40px;
    }

    .terms-toc ol {
        grid-template-columns: 1fr;
    }

    .term-item {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .term-item h2 {
        font-size: 19px;
    }

    .footer {
        width: 92%;
        padding: 50px 6% 25px;
        border-radius: 24px;
    }

    .footer-top {
        flex-direction: column;
        gap: 35px;
        padding-bottom: 35px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom div {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-1 {
        width: 94%;
        height: 68px;
        margin: 3% auto;
        padding: 0 10px;
        border-radius: 18px;
    }

    .header-logo {
        width: 46px;
        margin-right: 5px;
    }

    .btn-hamburger {
        width: 42px;
        height: 42px;
    }

    .nav-menu {
        top: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}