/* ============================================
   Professional Cookie List Style
   Clean design - inherits fonts from SDK
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
}

/* Main wrapper - section__body */
.section__body {
    padding: 60px 0;
    background-color: transparent;
}

/* Container */
.section__body .container {
    max-width: 1200px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Card */
.section__body .content-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    margin-bottom: 30px;
}

/* Cookie Policy Container */
.section__body .ot-sdk-cookie-policy,
.section__body .ot-sdk-container {
    color: #4a5568;
    line-height: 1.7;
}

/* Main Title (h3) */
.section__body .ot-sdk-cookie-policy-title,
.section__body #cookie-policy-title {
    color: #1a365d;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 3px solid #3182ce;
    display: inline-block;
}

/* Description text */
.section__body #cookie-policy-description {
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    border-radius: 10px;
    border-left: 4px solid #3182ce;
}

/* Section Titles (h4) */
.section__body .ot-sdk-cookie-policy-group {
    color: #2d3748;
    margin-top: 35px;
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 4px solid #48bb78;
    display: flex;
    align-items: center;
}

.section__body .ot-sdk-cookie-policy-group::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    margin-right: 10px;
    margin-left: -15px;
}

/* Section Description Paragraphs */
.section__body .ot-sdk-cookie-policy-group-desc {
    line-height: 1.8;
    color: #718096;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 8px;
}

/* Tables */
.section__body .ot-sdk-cookie-policy table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Table Caption (Screen Reader Only) */
.section__body .ot-scrn-rdr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Table Headers - Clean professional style */
.section__body .ot-table-header {
    background: #f8f8f8;
    color: #333333;
    padding: 16px 20px;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.section__body .ot-table-header:first-child {
    border-radius: 12px 0 0 0;
}

.section__body .ot-table-header:last-child {
    border-radius: 0 12px 0 0;
}

/* Table Cells */
.section__body .ot-host-td,
.section__body .ot-cookies-td,
.section__body .ot-cookies-type {
    padding: 14px 20px;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

/* Alternating row colors */
.section__body .ot-sdk-cookie-policy tbody tr:nth-child(even) .ot-host-td,
.section__body .ot-sdk-cookie-policy tbody tr:nth-child(even) .ot-cookies-td,
.section__body .ot-sdk-cookie-policy tbody tr:nth-child(even) .ot-cookies-type {
    background: #fafafa;
}

/* Row hover effect */
.section__body .ot-sdk-cookie-policy tbody tr:hover .ot-host-td,
.section__body .ot-sdk-cookie-policy tbody tr:hover .ot-cookies-td,
.section__body .ot-sdk-cookie-policy tbody tr:hover .ot-cookies-type {
    background: #f0f7ff;
}

/* First column - domain names */
.section__body .ot-host-td {
    font-weight: 500;
    color: #2d3748;
    white-space: nowrap;
}

/* Last row rounded corners */
.section__body .ot-sdk-cookie-policy tbody tr:last-child .ot-host-td {
    border-radius: 0 0 0 12px;
}

.section__body .ot-sdk-cookie-policy tbody tr:last-child .ot-cookies-type {
    border-radius: 0 0 12px 0;
}

.section__body .ot-sdk-cookie-policy tbody tr:last-child td {
    border-bottom: none;
}

/* Mobile Border (hide) */
.section__body .ot-mobile-border {
    display: none;
}

/* Cookie type badge */
.section__body .ot-cookies-type-td-content {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* First Party badge - green */
.section__body .ot-cookies-type-td-content:contains("First"),
.section__body .ot-cookies-type[data-label*="First"] .ot-cookies-type-td-content {
    background: #c6f6d5;
    color: #22543d;
}

/* Links in Tables */
.section__body .ot-sdk-cookie-policy a,
.section__body .ot-cookies-td-content a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 2px 0;
    border-bottom: 1px dashed #3182ce;
}

.section__body .ot-sdk-cookie-policy a:hover {
    color: #2c5282;
    border-bottom-style: solid;
}

/* Section spacing */
.section__body .ot-sdk-cookie-policy section {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

/* Wrapper styles */
.section__body .cookie-list-content,
.section__body .privacy-sdk-container {
    background: transparent;
}

.section__body .wrapper,
.section__body .cookie-list-content > div {
    background: transparent;
}

/* Override SDK container styles */
.section__body #ot-sdk-cookie-policy {
    padding: 0;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991px) {
    .section__body {
        padding: 40px 0;
    }

    .section__body .content-card {
        padding: 30px 35px;
        border-radius: 12px;
    }
}

@media (max-width: 767px) {
    .section__body {
        padding: 30px 0;
    }

    .section__body .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section__body .content-card {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .section__body .ot-sdk-cookie-policy table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
    }

    .section__body .ot-table-header {
        padding: 12px 15px;
    }

    .section__body .ot-host-td,
    .section__body .ot-cookies-td,
    .section__body .ot-cookies-type {
        padding: 12px 15px;
    }

    .section__body #cookie-policy-description {
        padding: 15px;
    }

    .section__body .ot-sdk-cookie-policy-group-desc {
        padding: 12px 15px;
    }
}

@media (max-width: 575px) {
    .section__body .content-card {
        padding: 20px 15px;
        margin-left: -5px;
        margin-right: -5px;
        border-radius: 8px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    body {
        background: white;
    }

    .section__body {
        padding: 20px 0;
    }

    .section__body .content-card {
        box-shadow: none;
        padding: 20px;
    }

    .section__body .ot-sdk-cookie-policy table {
        box-shadow: none;
    }

    .section__body .ot-table-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
}
