@import url('variables.css');
@import url('flexbox.css');
@import url('styles.css');

/* ==================================
          TERMS OF SERVICE
===================================== */

/* Header Styles */
.terms-header-main {
    width: 70%;
    display: flex;
    justify-content: center;
}

.terms-header-content {
    padding: 34px 16px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.terms-title {
    font-family: 'Aeonik', sans-serif;
    white-space: nowrap;
    text-align: center;
    margin: 0 auto 16px auto;
    font-size: 2.5rem;
    font-weight: 700;
    color: black;
}

/* Main Content Layout */
.body {
    font-family: 'Satoshi', sans-serif;
    color: black;
    display: flex;
    justify-content: center;
    padding: 60px 20px 0 20px;
    min-height: calc(100vh - 200px);
}

.terms-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    margin-bottom: 80px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

    .tab-nav ul {
        display: flex;
        background: #d9effc;
        border-radius: 50px;
        padding: 10px 20px;
        box-shadow: 20px 20px 20px rgba(0,0,0,0.1);
        gap: 10px;
        list-style: none;
    }

.tab-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: black;
    font-weight: 400;
    line-height: 1;
    font-family: var(--font-family-body);
}

    .tab-item .icon {
        display: none;
        margin-right: 8px;
        display: flex;
        align-items: center;
    }

        .tab-item .icon img {
            width: 20px;
            height: 20px;
            object-fit: contain;
            display: block;
        }

    .tab-item.active {
        background: linear-gradient(to right, #0088d1, #152960);
        color: white;
        padding: 13px 23px;
        font-weight: 500;
    }

        .tab-item.active .icon {
            display: flex;
        }

.tab-pane {
    display: none;
    max-width: 900px;
    margin: auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.7;
    font-size: 16px;
}

    .tab-pane.active {
        display: block;
    }

    .tab-pane h2 {
        font-family: var(--font-family-body);
        font-size: 26px;
        font-weight: bolder;
        margin-bottom: 25px;
        color: black;
        text-align: center;
    }

    .tab-pane h3 {
        font-family: var(--font-family-body);
        font-size: 17px;
        font-weight: bolder;
        margin-bottom: 25px;
        color: black;
        text-align: left;
    }

    .tab-pane h4 {
        font-family: var(--font-family-body);
        font-size: 16px;
        font-weight: bolder;
        margin-bottom: 25px;
        color: black;
        text-align: left;
    }

    .tab-pane p {
        font-family: var(--font-family-body);
        margin-bottom: 20px;
        font-size: 16px;
        text-align: justify;
        color: black;
    }

    .tab-pane a {
        color: #0089D1;
        text-decoration: none;
    }

    .tab-pane img {
        vertical-align: middle;
        margin-left: 5px;
    }

.check-line {
    margin: 20px;
    font-family: var(--font-family-body);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: black;
}

    .check-line img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.check-line-rules {
    margin: 20px;
    font-family: var(--font-family-body);
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: black;
}

    .check-line-rules img {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

.sub-check-list {
    font-family: var(--font-family-body);
    padding-left: 70px;
    margin-bottom: 20px;
    list-style-type: disc;
    font-size: 15px;
    color: black;
}

    .sub-check-list li {
        margin-bottom: 8px;
        line-height: 1.6;
    }

.cookie-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.styled-cookie-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dce3ec;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .styled-cookie-table thead {
        background-color: #d9effc;
    }

        .styled-cookie-table thead th {
            font-family: var(--font-family-body);
            text-align: left;
            padding: 12px 16px;
            color: black;
            font-size: 16px;
            font-weight: 700;
            border-bottom: 1px solid #cdd9e6;
        }

    .styled-cookie-table tbody td {
        font-family: var(--font-family-body);
        padding: 14px 16px;
        vertical-align: middle;
        color: black;
        line-height: 1.6;
        border-bottom: 1px solid #f1f5f9;
    }

    .styled-cookie-table tbody tr:last-child td {
        border-bottom: none;
    }

    .styled-cookie-table tbody td:first-child {
        vertical-align: middle;
        font-weight: 500;
        color: #0089D1;
        width: 220px;
    }

.styled-cookie-details-table {
    border: 1px solid #dce3ec;
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    table-layout: fixed;
}

    .styled-cookie-details-table thead {
        background-color: #d9effc;
    }

        .styled-cookie-details-table thead th {
            font-family: var(--font-family-body);
            padding: 12px;
            font-size: 15px;
            font-weight: 600;
            color: black;
            border-bottom: 1px solid #bcd2ee;
            text-align: center;
        }

    .styled-cookie-details-table tbody td {
        font-family: var(--font-family-body);
        padding: 12px;
        border-bottom: 1px solid #e8edf3;
        color: black;
        vertical-align: middle;
        word-wrap: break-word;
    }

        .styled-cookie-details-table tbody td a {
            font-family: var(--font-family-body);
            color: #0088d1;
            text-decoration: none;
            font-weight: 500;
        }

            .styled-cookie-details-table tbody td a:hover {
                text-decoration: underline;
            }

@media screen and (max-width: 768px) {
    .styled-cookie-details-table thead {
        display: none;
    }

    .styled-cookie-details-table,
    .styled-cookie-details-table tbody,
    .styled-cookie-details-table tr,
    .styled-cookie-details-table td {
        display: block;
        width: 100%;
    }

        .styled-cookie-details-table tr {
            margin-bottom: 15px;
            border-bottom: 2px solid #f0f4f8;
            padding: 10px;
        }

        .styled-cookie-details-table td {
            text-align: left;
            padding-left: 45%;
            position: relative;
        }

            .styled-cookie-details-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 16px;
                top: 12px;
                font-weight: bold;
                color: #333;
                width: 40%;
                white-space: nowrap;
            }
}

.terms-banner {
    display: flex;
    max-width: 900px;
    margin: auto;
    padding: 10px 30px;
    background-color: #2f98cc;
    color: #ffffff;
    margin-top: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 130px;
    flex-wrap: wrap;
}

.banner-text {
    max-width: 500px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .banner-text .price {
        font-size: 36px;
        font-weight: 500;
    }

    .banner-text h1 {
        font-size: 36px;
        margin: 5px 0 15px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .banner-text .faq-link {
        color: white;
        font-weight: 600;
        font-size: 17px;
        text-decoration: none;
    }

.banner-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {

    .terms-header-main {
        width: 100%;
        padding: 0 10px;
    }

    .terms-header-content {
        padding: 0px !important;
    }

    .terms-title {
        font-size: 35px;
        margin: 0 auto;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }
    /* BODY LAYOUT */
    .body {
        padding: 30px 15px 0 15px;
    }

    .tab-nav {
        padding: 0 12px;
    }

        .tab-nav ul {
            padding: 6px 12px;
            gap: 6px;
        }

    .tab-item {
        padding: 8px 14px;
        font-size: 14px;
    }

        .tab-item.active {
            padding: 10px 16px;
        }

        .tab-item .icon img {
            width: 16px;
            height: 16px;
        }

    /* TAB PANE */
    .tab-pane {
        padding: 20px;
        font-size: 14px;
    }

        .tab-pane h2 {
            font-size: 20px;
        }

        .tab-pane h3 {
            font-size: 16px;
        }

        .tab-pane h4 {
            font-size: 15px;
        }

        .tab-pane p {
            font-size: 14px;
        }

    /* CHECK LISTS */
    .check-line,
    .check-line-rules {
        font-size: 14px;
        gap: 8px;
    }

    .sub-check-list {
        padding-left: 40px;
        font-size: 14px;
    }

    /* TABLES */
    .styled-cookie-table thead {
        font-size: 14px;
    }

    .styled-cookie-table tbody td {
        font-size: 13px;
    }

    /* TERMS BANNER */
    .terms-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 20px;
    }

    .banner-content {
        flex-direction: column;
        gap: 20px;
    }

    .banner-text {
        max-width: 100%;
    }

        .banner-text .price {
            font-size: 28px;
        }

        .banner-text h1 {
            font-size: 24px;
        }

        .banner-text p {
            font-size: 14px;
        }

        .banner-text .faq-link {
            font-size: 15px;
        }

    .banner-image img {
        max-width: 220px;
    }

    .styled-cookie-table tbody td:first-child {
        width: 10px; 
        min-width: 130px;
        max-width: 160px;
        white-space: normal;
    }

    .styled-cookie-table tbody td:nth-child(2) {
        width: auto; 
    }

    .styled-cookie-details-table tbody td:first-child {
        width: 120px;
        min-width: 110px;
        max-width: 140px;
        white-space: nowrap;
    }

    .styled-cookie-details-table tbody td:nth-child(2) {
        width: auto;
    }
}
