/* ============================
   BASE
============================ */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow: auto;
}

body {
    height: 100%;
    overflow-x: hidden;
}

.terms-body {
    background-color: #220022;
    padding-top: 60px;                 /* под фиксированный header */
    height: calc(100vh - 130px);       /* под фиксированный footer */
    padding-bottom: 20px;
    box-sizing: border-box;
    color: #fff;
}

/* кастомный скроллбар */

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #333;
}

body::-webkit-scrollbar-track {
    background-color: transparent;
}

/* ============================
   HEADER (как в index.css)
============================ */

.line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #330033;
    z-index: 5;
    display: flex;
    align-items: center;
    padding-left: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.logotext {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.line img {
    width: 50px;
}

.texttop {
    color: #FFF;
    margin-left: 10px;
    font-size: 32px;
    white-space: nowrap;
}

/* ============================
   CONTENT
============================ */

.terms-content {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.terms-container {
    max-width: 900px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.terms-container h1 {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.terms-container h2 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.terms-container p {
    font-size: 16px;
    margin-bottom: 12px;
}

.terms-container ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.terms-container li {
    margin-bottom: 6px;
}

.terms-container .intro {
    font-size: 17px;
    margin-bottom: 20px;
}

.terms-container .final-note {
    margin-top: 25px;
    font-weight: bold;
}

/* ============================
   MOBILE ADAPTATION
============================ */

@media (max-width: 768px) {
    .terms-body {
        height: calc(100vh - 118px);
    }

    .texttop {
        font-size: 32px;
    }

    .terms-content {
        padding: 30px 10px;
    }

    .terms-container {
        padding: 20px 16px;
    }

    .terms-container h1 {
        font-size: 26px;
    }

    .terms-container h2 {
        font-size: 20px;
    }

    .terms-container p,
    .terms-container li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .terms-body {
        height: calc(100vh - 135px);
    }

    .terms-container h1 {
        font-size: 22px;
    }

    .terms-container h2 {
        font-size: 18px;
    }

    .terms-container p,
    .terms-container li {
        font-size: 14px;
    }
}

/* ============================
   FOOTER
============================ */

body {
    --footer-bg: #330033;
    --footer-text: #fff;
    --footer-link: #8F00FF;
}