﻿
:root {
    --terms-green: #48a878;
    --terms-green-dark: #378c61;
    --terms-green-light: #edf9f2;
    --terms-text: #29352e;
    --terms-muted: #6f7c74;
    --terms-border: #e1eae4;
    --terms-surface: #f8fbf9;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Vazirmatn', 'IRANSans', 'IRANYekan', 'Segoe UI', Tahoma, Arial, sans-serif;
    color: var(--terms-text);
    background: linear-gradient(135deg, #f2faf5, #ffffff 55%, #edf8f1);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}




.terms-page {
    min-height: 100vh;
    padding: 35px 20px 24px;
}

.terms-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* =================================
   HERO
================================= */

.terms-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 38px;
    margin-bottom: 20px;
    border: 1px solid #deece3;
    border-radius: 22px;
    background: linear-gradient(120deg, #eaf8ef, #ffffff 65%, #f0faf4);
    box-shadow: 0 12px 34px rgba(43, 91, 61, .05);
}

    .terms-hero::before {
        content: "";
        position: absolute;
        width: 280px;
        height: 280px;
        left: -100px;
        top: -155px;
        border-radius: 50%;
        background: rgba(114, 194, 154, .12);
    }

    .terms-hero::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        right: -75px;
        bottom: -115px;
        border: 1px solid rgba(72, 168, 120, .18);
        border-radius: 50%;
    }

.terms-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--terms-green-dark);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .3px;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--terms-green);
    box-shadow: 0 0 0 5px rgba(72, 168, 120, .12);
}

.terms-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 9px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(72, 168, 120, .11);
    color: var(--terms-green-dark);
    font-size: 11px;
    font-weight: 700;
}

.terms-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #24352b;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.7;
}

.terms-hero > p {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0;
    color: var(--terms-muted);
    font-size: 13px;
    line-height: 2.2;
}

.terms-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #66766c;
    font-size: 11px;
}

.meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--terms-green);
    color: white;
    font-weight: bold;
}

/* =================================
   TABLE OF CONTENTS
================================= */

.terms-toc {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(36, 64, 46, .035);
}

    .terms-toc h2 {
        margin: 0 0 16px;
        color: var(--terms-green-dark);
        font-size: 16px;
        font-weight: 800;
    }

    .terms-toc a {
        display: block;
        padding: 9px 0;
        border-bottom: 1px solid #f0f3f1;
        color: #59665e;
        font-size: 12px;
        transition: color .2s;
    }

        .terms-toc a:last-child {
            border-bottom: 0;
        }

        .terms-toc a:hover {
            color: var(--terms-green-dark);
        }

/* =================================
   TERMS SECTIONS
================================= */

.terms-section {
    margin-bottom: 15px;
    padding: 25px 28px;
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(36, 64, 46, .025);
    scroll-margin-top: 20px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--terms-green-light);
    color: var(--terms-green-dark);
    font-size: 12px;
    font-weight: 900;
}

.section-heading h2 {
    margin: 0;
    color: #29372e;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.8;
}

.terms-section > p {
    margin: 0 0 13px;
    color: #647168;
    font-size: 12px;
    line-height: 2.3;
}

    .terms-section > p:last-child {
        margin-bottom: 0;
    }

.terms-section ul {
    margin: 0;
    padding-right: 20px;
    color: #647168;
}

.terms-section li {
    padding-right: 3px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 2.2;
}

    .terms-section li:last-child {
        margin-bottom: 0;
    }

    .terms-section li::marker {
        color: var(--terms-green);
    }

/* =================================
   INFO CARDS
================================= */

.terms-info-card {
    margin: 12px 0;
    padding: 17px 19px;
    border: 1px solid #e2eee6;
    border-radius: 13px;
    background: #f8fcf9;
}

    .terms-info-card strong {
        display: block;
        margin-bottom: 7px;
        color: #344238;
        font-size: 13px;
        font-weight: 800;
    }

    .terms-info-card p {
        margin: 0;
        color: #68776d;
        font-size: 11px;
        line-height: 2.2;
    }

/* =================================
   DELIVERY CARDS
================================= */

.delivery-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.delivery-policy-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid #e1ebe4;
    border-radius: 15px;
    background: #fbfdfb;
}

.delivery-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 11px;
    background: var(--terms-green-light);
    color: var(--terms-green-dark);
    font-size: 20px;
    font-weight: 800;
}

.delivery-policy-card h3 {
    margin: 0 0 8px;
    color: #344137;
    font-size: 13px;
    font-weight: 800;
}

.delivery-policy-card p {
    margin: 0;
    color: #6b786f;
    font-size: 11px;
    line-height: 2.1;
}

/* =================================
   FINAL NOTE
================================= */

.terms-final-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 20px;
    padding: 22px;
    border: 1px solid #dbece1;
    border-radius: 17px;
    background: #f0f9f3;
}

.final-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    min-width: 35px;
    height: 35px;
    border-radius: 11px;
    background: var(--terms-green);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.terms-final-note strong {
    display: block;
    margin-bottom: 5px;
    color: #304037;
    font-size: 13px;
    font-weight: 800;
}

.terms-final-note p {
    margin: 0;
    color: #68776d;
    font-size: 11px;
    line-height: 2.2;
}

/* =================================
   FOOTER - LOGIN BUTTON ONLY
================================= */

.terms-footer {
    display: flex;
    justify-content: center;
    padding: 25px 0 8px;
}

.back-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--terms-green-dark);
    border-radius: 13px;
    background: var(--terms-green-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: none;
}

    .back-login-btn:hover,
    .back-login-btn:focus,
    .back-login-btn:active {
        border-color: var(--terms-green-dark);
        background: var(--terms-green-dark);
        color: #fff;
        transform: none;
        box-shadow: none;
    }

    .back-login-btn span {
        font-size: 18px;
    }

/* =================================
   TABLET
================================= */

@media (max-width: 760px) {
    .terms-page {
        padding: 20px 14px;
    }

    .terms-hero {
        padding: 28px;
    }

    .delivery-policy-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================
   MOBILE
================================= */

@media (max-width: 600px) {
    .terms-page {
        padding: 10px 9px 18px;
    }

    .terms-hero {
        min-height: auto;
        margin-bottom: 12px;
        padding: 24px 19px;
        border-radius: 17px;
    }

    .terms-brand {
        margin-bottom: 18px;
    }

    .terms-hero h1 {
        font-size: 24px;
    }

    .terms-hero > p {
        font-size: 12px;
        line-height: 2.2;
    }

    .terms-toc {
        padding: 18px;
        border-radius: 15px;
    }

        .terms-toc h2 {
            font-size: 15px;
        }

        .terms-toc a {
            font-size: 11px;
            line-height: 2;
        }

    .terms-section {
        padding: 19px 16px;
        border-radius: 15px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .section-number {
        width: 32px;
        min-width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .section-heading h2 {
        font-size: 15px;
    }

    .terms-section > p,
    .terms-section li {
        font-size: 11px;
        line-height: 2.25;
    }

    .terms-info-card {
        padding: 14px;
    }

        .terms-info-card strong {
            font-size: 12px;
        }

        .terms-info-card p {
            font-size: 11px;
        }

    .delivery-policy-card {
        padding: 15px;
    }

    .terms-final-note {
        padding: 16px;
    }

        .terms-final-note p {
            font-size: 11px;
        }

    .back-login-btn {
        width: 100%;
        max-width: 340px;
        min-height: 52px;
    }
}
