/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #404040;
    background-color: #ffffff;
}

/* Page header */
.page-header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    height: 32px;
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    color: #404040;
    margin: 0;
}

/* Main content */
.content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 5%;
}

.policy-document {
    background: #ffffff;
}

/* Document header (date + Galp logo) */
.document-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.date {
    flex: 0 0 40%;
    font-size: 15px;
}

.galp-logo {
    height: 70px;
    flex: 0 0 57%;
    max-width: 57%;
    object-fit: contain;
    text-align: right;
}

/* Document title */
.document-title {
    font-size: 18px;
    color: #FA551E;
    font-weight: bold;
    text-align: center;
    margin: 20px 0 40px;
    line-height: 1.3;
}

/* Sections */
.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    font-size: 14px;
    color: #000000;
    font-weight: bold;
    margin: 20px 0 10px;
    padding-left: 20px;
    line-height: 1.07;
}

.policy-section p,
.introduction p {
    margin-bottom: 16px;
    line-height: 1.48;
    text-align: justify;
    font-size: 15px;
}

.introduction {
    margin-bottom: 30px;
}

/* Table of contents */
.toc {
    margin-bottom: 30px;
}

.toc-item {
    font-size: 15px;
    line-height: 1.48;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Subsections */
.subsection-title {
    font-size: 14px;
    font-weight: bold;
    margin: 16px 0 8px;
    padding-left: 20px;
}

.subsection-content {
    margin-bottom: 16px;
    line-height: 1.48;
    text-align: justify;
}

/* Lists */
.content-list {
    margin: 16px 0;
    padding-left: 20px;
    line-height: 1.48;
}

.content-list li {
    margin-bottom: 8px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.data-table th,
.data-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #404040;
}

.data-table td {
    background-color: #ffffff;
}

/* Document footer */
.document-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    line-height: 1.48;
    font-size: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        gap: 12px;
    }

    .header-logo {
        height: 28px;
    }

    .app-name {
        font-size: 14px;
    }

    .content {
        padding: 30px 5%;
    }

    .document-header {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .date,
    .galp-logo {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: left;
    }

    .galp-logo {
        height: 60px;
        margin-top: 20px;
    }

    .document-title {
        font-size: 16px;
        margin: 15px 0 30px;
    }

    .policy-section h2 {
        font-size: 13px;
        padding-left: 0;
    }

    body {
        font-size: 14px;
    }

    .policy-section p,
    .introduction p,
    .document-footer {
        font-size: 14px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }

    .subsection-title {
        padding-left: 0;
    }
}
