/*
 * legal.css — Geteiltes Stylesheet für /agb, /impressum, /datenschutz,
 * /community-guidelines. Ausgelagert aus den vier Inline-<style>-Blöcken.
 */

/* =========================================================================
   Reset & Tokens
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #DC143C;
    --primary-hover: #a40000;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(220, 20, 60, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(220, 20, 60, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 20, 60, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(220, 20, 60, 0.15) 0%, transparent 50%);
    z-index: -1;
    animation: floatingGradient 15s ease-in-out infinite alternate;
}

@keyframes floatingGradient {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(5deg) scale(1.1); }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

/* =========================================================================
   Header
   ========================================================================= */
header {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    border-radius: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--text-light), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    line-height: 1.2;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* =========================================================================
   Main / Containers
   ========================================================================= */
main {
    flex-grow: 1;
    padding: 3rem 1.5rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Community-Guidelines nutzt .main-content (gleiches Layout) */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================================================
   Content Boxes
   ========================================================================= */
.info-box {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.contact-box {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.success-box {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #FF9800;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.rule-box {
    background: var(--bg-glass);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* =========================================================================
   Community-Guidelines spezifisch
   ========================================================================= */
.guidelines-section {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.guidelines-section:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.section-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.section-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.section-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.section-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* SSC Principles */
.ssc-box {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(220, 20, 60, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.ssc-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.ssc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ssc-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.ssc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.ssc-icon { font-size: 3rem; margin-bottom: 1rem; }

.ssc-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.ssc-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.warning-title,
.success-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-title { color: #ffc107; }
.success-title { color: #4caf50; }

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-button:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

/* =========================================================================
   Datenschutz-Cookie-Tabelle
   ========================================================================= */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-glass);
    border-radius: 12px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.table thead th {
    background: rgba(220, 20, 60, 0.15);
    color: var(--primary-color);
    font-weight: 600;
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:hover {
    background: var(--bg-glass-hover);
}

.table code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* =========================================================================
   Utility Classes
   ========================================================================= */
.text-center { text-align: center; }
.color-primary { color: var(--primary-color); }
.color-text-muted { color: var(--text-muted); }
.margin-0 { margin: 0; }
.margin-top-0 { margin-top: 0; }
.margin-bottom-0 { margin-bottom: 0; }
.margin-top-1 { margin-top: 1rem; }
.margin-top-3rem { margin-top: 3rem; }
.font-size-0-9rem { font-size: 0.9rem; }
.font-size-1-1rem { font-size: 1.1rem; }

/* =========================================================================
   Typography
   ========================================================================= */
h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--primary-color); }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.version-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 768px) {
    .legal-title,
    .page-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .contact-box {
        padding: 1.5rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .guidelines-section {
        padding: 1.5rem;
    }

    .ssc-grid {
        grid-template-columns: 1fr;
    }
}
