body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    position: relative;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header {
    padding: 20px;
    overflow: hidden;
    border-radius: 10px;
    background-image: url("/links/imgs/cabecalho2.webp");
    background-position: center;
    background-size: cover;
}

.profile {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 20px;
}

.profile img {
    display: block;
    width: 200px;
    height: 200px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 20%;
    object-fit: scale-down;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.link-button {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 5px;
    background: #b5488f;
    color: #fff;
    font-weight: bold;
    text-align: left;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.link-button-featured {
    background: #f17b27;
}

.link-button:focus-visible,
.link-button:hover {
    background: #a0e72d;
    color: #222;
    outline: 3px solid rgba(181, 72, 143, 0.24);
    transform: translateY(-1px);
}

.link-button img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    object-fit: contain;
}

.loading-text,
.error-text {
    margin: 0;
    padding: 16px;
    border-radius: 5px;
    color: #5d5060;
    background: #f7edf4;
    font-weight: bold;
}

.footer {
    width: 100%;
    margin-top: 20px;
}

.footer img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 10px 10px;
}

.privacy-banner {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 10;
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid #ead8e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(43, 29, 45, 0.16);
    text-align: left;
}

.privacy-banner[hidden],
.privacy-preferences[hidden] {
    display: none;
}

.privacy-banner h2 {
    margin: 0 0 5px;
    color: #322338;
    font-size: 1rem;
}

.privacy-banner p {
    margin: 0;
    color: #6b5b70;
    font-size: 0.9rem;
    line-height: 1.45;
}

.privacy-banner a {
    display: inline-block;
    margin-top: 8px;
    color: #b5488f;
    font-size: 0.86rem;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-actions {
    display: grid;
    gap: 8px;
}

.privacy-actions button,
.privacy-preferences {
    min-height: 38px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-weight: bold;
}

.privacy-accept {
    background: #b5488f;
    color: #fff;
}

.privacy-decline {
    border: 1px solid #ead8e5 !important;
    background: #fff;
    color: #322338;
}

.privacy-preferences {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 9;
    padding: 0 12px;
    border: 1px solid #ead8e5;
    background: #fff;
    color: #322338;
    box-shadow: 0 10px 24px rgba(43, 29, 45, 0.14);
}

@media (min-width: 768px) {
    .links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
    }

    .link-button {
        width: calc(50% - 10px);
        margin: 5px;
    }

    .privacy-banner {
        left: auto;
        width: min(520px, calc(100vw - 28px));
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .privacy-actions {
        min-width: 124px;
    }
}
