body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #222;
    background: #f3f6f3;
    /* Permite que o body cresça além do ecrã quando o conteúdo for maior */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Garante algum espaçamento em dispositivos pequenos para evitar corte junto ao topo/rodapé */
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.background {
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.2)),
                      url('images/background.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 40px;
    max-width: 70%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    width: 150px;
    /* margin-bottom: 15px; */
}


body.inicio .logo {
    width: 250px;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #004d25;
}

h2 {
    color: #004d25;
}

nav {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

nav a {
    text-decoration: none;
    background: #000000;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background 0.3s;
    font-weight: 500;
}

nav a:hover {
    background: #43a047;
}

main {
    text-align: left;
}

p {
    line-height: 1.6em;
}

ul.app-links {
    list-style: none;
    padding: 0;
}

ul.app-links li a {
    color: #007b5e;
    text-decoration: none;
}

ul.app-links li a:hover {
    text-decoration: underline;
}

.back-link {
    color: #4CAF50;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}

footer {
    margin-top: 40px;
    font-size: 0.85em;
    color: #666;
}

/* screen sizes */
@media (min-width: 767px) {
   .container {
        max-width: 720px;
        width: 90%;
    }
    nav {
        flex-direction: row;
    }
}

/* Cookie banner */
.cookie-banner{
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 16px 18px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.cookie-content{
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    max-width: 1100px;
}
.cookie-content p{
    margin: 0;
    font-size: 0.95rem;
    color: #222;
}
.cookie-content a{ color: #000000; text-decoration: underline; }
.cookie-actions{ display: flex; gap: 10px; }
.cookie-actions .btn{
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.cookie-actions .accept{ background: #000000; color: #fff; }
.cookie-actions .reject{ background: #e0e0e0; color: #333; }

@media (min-width: 720px){
    .cookie-content{ flex-direction: row; align-items: center; justify-content: space-between; }
    .cookie-content p{ flex: 1; margin-right: 20px; }
}
