:root {
    --bg-color: #F0EFF4;
    --accent-box: rgba(236, 201, 153, 0.2);
    --text-dark: #111;
    --link-color: #345B9D;
    --link-hover: #5B7FC1;
    --border-color: #CCC;
    --icon-color: #8CA9D3;
    --modal-bg: rgba(0,0,0,0.6);
    --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.no-scroll { overflow: hidden; }

.top-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-wrapper a.domain {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
}

.top-header-wrapper a.domain:hover { color: var(--link-hover); }

.social-icons a {
    margin-left: 1rem;
    color: var(--icon-color);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icons a:hover { color: var(--link-hover); }

header {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: left;
}

header h1 {
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.125rem;
    color: var(--text-dark);
    text-align: justify;
    margin-bottom: 1.5rem;
}

main {
    flex: 1;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 2rem 0;
}

.main-box {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.125rem;
    color: var(--text-dark);
    text-align: justify;
    background-color: var(--accent-box);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.main-box p { margin: 0; }

.main-box i {
    color: var(--icon-color);
    margin-top: 0.15rem;
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .main-box:hover { background-color: rgba(236, 201, 153, 0.35); }
    .main-box:hover i { color: var(--link-hover); transform: scale(1.12); }
}

a { color: var(--link-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--link-hover); text-decoration: underline; }

footer {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0 1rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-dark);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-bg);
    z-index: 6000;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.modal.is-open { display: flex; }

.modal-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 { margin-bottom: 1rem; }
.modal-content h3 { margin-top: 1rem; margin-bottom: 0.5rem; }

.modal-content p { margin-bottom: 1rem; }
.modal-content p:last-child { margin-bottom: 0; }

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    margin: 0.75rem 0 1rem 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 0.9rem 0;
    z-index: 5000;
    display: none;
}

.cookie-inner {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-dark);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--icon-color);
    color: #111;
    border: 1px solid var(--icon-color);
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--icon-color);
    color: var(--link-color);
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--link-color);
    text-decoration: underline;
    padding: 0.55rem 0.2rem;
    cursor: pointer;
}

.cookie-options { margin-top: 0.75rem; }

.cookie-option {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0.65rem 0;
}

.cookie-option input { margin-top: 0.2rem; }

.cookie-save-row { margin-top: 1rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

.cm-hint { margin-top: 1rem; font-size: 0.95rem; }

/* Tabs */
.cm-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem 0;
    flex-wrap: wrap;
}

.cm-tab {
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}

.cm-tab.is-active {
    border-color: var(--icon-color);
}

.cm-panel { display: none; }
.cm-panel.is-active { display: block; }

.hairline {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1.25rem 0;
}

@media (max-width: 600px) {
    header h1 { font-size: 2rem; }
    header p { font-size: 1rem; }

    .top-header-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .modal-content { padding: 1rem; max-height: 85vh; }
}