/* =========================================
   legal.css – Shared styles for Impressum
   and Datenschutz pages
   Sporttauch-Club Leonberg e. V.
   ========================================= */

/* -----------Reset & Base----------- */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f7fa;
    color: #000;
}

/* -----------Navigation----------- */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 10px 5%;
}

.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0%;
    height: 3px;
    background: #000;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* -----------Page Content----------- */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 80px 20px;
}

.page-title {
    text-align: center;
    font-size: 45px;
    color: #0066a4;
    position: relative;
    margin-bottom: 60px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #00a8e1;
    border-radius: 2px;
}

/* -----------Card----------- */
.legal-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.legal-section {
    padding: 28px 35px;
    border-bottom: 1px solid #f0f0f0;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0066a4;
    margin-bottom: 10px;
    font-weight: 600;
}

.legal-section p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}

.legal-section a {
    color: #0066a4;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* -----------Back Button----------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 12px 28px;
    background: #0066a4;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: #00a8e1;
}

/* -----------Footer----------- */
.footer-container {
    display: flex;
    background: #333;
    color: white;
    padding: 50px 10%;
    gap: 50px;
}

.footer-box {
    flex: 1;
}

.footer-box h4 {
    margin-bottom: 15px;
    color: #0066a4;
}

.footer-box p,
.footer-box a {
    color: #ccc;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.8;
}

.footer-box a:hover {
    color: #fff;
}

/* -----------Mobile----------- */
@media only screen and (max-width: 992px) {
    nav ul {
        display: none;
    }

    .page-title {
        font-size: 35px;
    }

    .legal-section {
        padding: 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
        padding: 40px 5%;
    }
}
