/* ============================================
   U MA WAY - Legal Pages Styles
   ============================================ */

:root {
    --gold: #D4960A;
    --gold-light: #E8A317;
    --gold-bright: #F5B731;
    --teal-dark: #0A4D68;
    --teal: #088395;
    --teal-light: #05BFDB;
    --bg-white: #FFFFFF;
    --bg-light: #F7F9FC;
    --card-border: #E2E8F0;
    --text-dark: #1A202C;
    --text-secondary: #5A6677;
    --text-muted: #8896A6;
    --white: #FFFFFF;
    --gradient-teal: linear-gradient(135deg, #0A4D68 0%, #088395 50%, #05BFDB 100%);
    --gradient-gold: linear-gradient(135deg, #D4960A 0%, #F5B731 100%);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-white);
    color: var(--text-secondary);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

a { text-decoration: none; color: var(--teal); transition: var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; height: 80px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
    display: flex; align-items: center;
    justify-content: space-between; height: 80px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 60px; width: auto; mix-blend-mode: multiply; }

.back-home {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 50px;
    background: var(--gradient-teal); color: var(--white);
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.88rem;
    transition: var(--transition);
}
.back-home:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(8,131,149,0.3); }

/* === Hero === */
.legal-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #0A3D52 0%, #0A4D68 40%, #088395 100%);
    padding: 72px 0 56px;
    position: relative; overflow: hidden;
}
.legal-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&q=80') center/cover no-repeat;
    opacity: 0.07;
}
.legal-hero .container { position: relative; z-index: 2; }
.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white); margin-bottom: 10px; font-weight: 800;
}
.legal-hero p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* === Content Wrapper === */
.legal-content { padding: 64px 0 80px; }

.legal-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

/* === Sidebar TOC === */
.legal-toc {
    position: sticky; top: 100px;
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.legal-toc h4 {
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}
.legal-toc ul li { margin-bottom: 6px; }
.legal-toc ul li a {
    font-size: 0.85rem; color: var(--text-secondary);
    display: block; padding: 6px 10px;
    border-radius: var(--radius-sm); transition: var(--transition);
}
.legal-toc ul li a:hover {
    background: rgba(8,131,149,0.08);
    color: var(--teal-dark); padding-left: 14px;
}

/* === Main Content === */
.legal-main section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--card-border);
}
.legal-main section:last-child { border-bottom: none; margin-bottom: 0; }

.legal-intro {
    background: rgba(8,131,149,0.06);
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin-bottom: 48px;
}
.legal-intro p { font-size: 0.97rem; color: var(--text-secondary); line-height: 1.8; }

.legal-main h2 {
    font-size: 1.35rem; margin-bottom: 18px;
    display: flex; align-items: center; gap: 14px;
}
.section-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; min-width: 36px;
    background: var(--gradient-teal);
    color: var(--white); border-radius: 50%;
    font-size: 0.75rem; font-weight: 700;
}
.legal-main h3 {
    font-size: 1rem; margin: 22px 0 10px;
    color: var(--teal-dark);
}
.legal-main p {
    font-size: 0.93rem; line-height: 1.85;
    color: var(--text-secondary); margin-bottom: 14px;
}
.legal-main ul {
    margin: 10px 0 16px 4px;
    display: flex; flex-direction: column; gap: 10px;
}
.legal-main ul li {
    font-size: 0.92rem; color: var(--text-secondary);
    padding-left: 20px; position: relative; line-height: 1.75;
}
.legal-main ul li::before {
    content: '';
    position: absolute; left: 0; top: 10px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal);
}
.legal-main ul li strong { color: var(--text-dark); }

/* === Contact Box === */
.contact-box {
    display: flex; flex-direction: column; gap: 16px;
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px; margin-top: 20px;
}
.contact-box-item {
    display: flex; gap: 16px; align-items: flex-start;
}
.contact-box-item i {
    width: 40px; height: 40px; min-width: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: rgba(8,131,149,0.1); border: 1px solid rgba(8,131,149,0.15);
    color: var(--teal); font-size: 1rem;
}
.contact-box-item strong { display: block; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 3px; }
.contact-box-item p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.contact-box-item a { color: var(--teal); }
.contact-box-item a:hover { color: var(--gold); }

/* === Footer === */
.legal-footer {
    background: #0A3D52; padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-footer .container {
    display: flex; justify-content: space-between; align-items: center;
}
.legal-footer p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.legal-footer-links { display: flex; gap: 24px; }
.legal-footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.legal-footer-links a:hover { color: var(--gold-bright); }

/* === Impressum === */
.impressum-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.impressum-card {
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
}

.impressum-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.impressum-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-teal);
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(8,131,149,0.2);
}

.impressum-detail h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.impressum-detail p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

.impressum-detail p strong {
    color: var(--teal-dark);
}

.impressum-detail a {
    color: var(--teal);
    font-weight: 500;
}

.impressum-detail a:hover {
    color: var(--gold);
}

.impressum-divider {
    height: 1px;
    background: var(--card-border);
    margin: 28px 0;
}

/* === Responsive === */
@media (max-width: 900px) {
    .legal-wrapper { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
}
@media (max-width: 540px) {
    .legal-hero { padding: 56px 0 40px; }
    .legal-footer .container { flex-direction: column; gap: 12px; text-align: center; }
    .legal-footer-links { flex-wrap: wrap; justify-content: center; }
}
