@font-face {
    font-family: 'Grenze Gotisch';
    src: url('assets/fonts/GrenzeGotisch_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Grenze Gotisch';
    src: url('assets/fonts/GrenzeGotisch_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Space Mono';
    src: url('assets/fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    /* Color Palette */
    --clr-green-dark: #1E3B2A;
    --clr-green-medium: #2C553D;
    --clr-brown-dark: #1F1511;
    --clr-brown-medium: #3E2723;
    --clr-gold-light: #FFD54F;
    --clr-gold-main: #E5A93C;
    --clr-gold-dark: #B57F1E;
    --clr-text-main: #F5F5F5;
    --clr-text-muted: #A3A3A3;
    
    /* Typography */
    --font-heading: 'Grenze Gotisch', serif;
    --font-body: 'Space Mono', monospace;
    
    /* Glassmorphism */
    --glass-bg: rgba(30, 59, 42, 0.45);
    --glass-border: rgba(229, 169, 60, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.dark-theme {
    background-color: var(--clr-brown-dark);
    background: radial-gradient(circle at center, var(--clr-green-dark) 0%, var(--clr-brown-dark) 100%);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background overlay texture effect */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Celtic-like simple repeating pattern */
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z" fill="%23E5A93C" fill-opacity="0.02" fill-rule="evenodd"/></svg>');
    pointer-events: none;
    z-index: 1;
    transition: transform 0.2s ease-out;
}

.container {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 760px;
    padding: 3.5rem 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.terms-panel {
    max-width: 860px;
    text-align: left;
    padding: 3rem 4rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--clr-gold-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.2;
}

.logo {
    font-size: 4rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.logo-image {
    width: 140px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(229, 169, 60, 0.4));
}

.logo.small {
    font-size: 2.2rem;
    margin-bottom: 0;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--clr-gold-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}

p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.9);
}

/* Animations & Effects */
.glow-text {
    text-shadow: 0 0 15px rgba(229, 169, 60, 0.4),
                 0 0 30px rgba(229, 169, 60, 0.2);
}

.icon-container {
    color: var(--clr-gold-main);
    margin-bottom: 1.5rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(229, 169, 60, 0.3));
}

/* Buttons */
.cta-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-text {
    font-size: 1rem;
    color: var(--clr-text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-gold-main), var(--clr-gold-dark));
    color: var(--clr-brown-dark);
    border: none;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(229, 169, 60, 0.3);
}

.primary-glow {
    box-shadow: 0 0 20px rgba(229, 169, 60, 0.4);
}

.pulse {
    animation: pulse 2.5s infinite;
}

/* Terms Page Specific */
.terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--clr-gold-main);
}

.content-left {
    text-align: left;
}

.last-update {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-style: italic;
    margin-bottom: 2.5rem;
}

.legal-text h3 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--clr-gold-light);
    letter-spacing: 0.5px;
}

.legal-text p {
    font-size: 1rem;
    color: rgba(245, 245, 245, 0.8);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.footer-links {
    margin-top: 1rem;
}

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

.footer-links a:hover {
    color: var(--clr-gold-main);
    text-decoration: underline;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 169, 60, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(229, 169, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 169, 60, 0); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Responsive */
@media (max-width: 768px) {
    .logo { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    .btn { padding: 1rem 1.8rem; font-size: 1rem; }
    .terms-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .terms-panel { padding: 2rem 1.5rem; }
    .container { padding: 2.5rem 1.5rem; }
}

/* Terms Content Components */
.legal-text h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--clr-gold-main);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.legal-text h5 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--clr-gold-light);
    margin-bottom: 0.8rem;
}

.legal-text h6 {
    font-size: 1.1rem;
    color: var(--clr-text-main);
    margin-bottom: 0.5rem;
}

.legal-text ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.6;
}

.info-box {
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(229, 169, 60, 0.05);
    border: 1px solid rgba(229, 169, 60, 0.2);
    margin-bottom: 2rem;
}

.card {
    background: rgba(30, 59, 42, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card-allowed {
    background: rgba(22, 101, 52, 0.15); /* green */
    border-color: rgba(22, 101, 52, 0.4);
}

.card-prohibited {
    background: rgba(153, 27, 27, 0.15); /* red */
    border-color: rgba(153, 27, 27, 0.4);
}

.rules-allowed { color: #4ade80 !important; }
.rules-prohibited { color: #f87171 !important; }

.process-step {
    text-align: center;
    margin-bottom: 1.5rem;
}

.process-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.warning-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(234, 179, 8, 0.1); /* yellow */
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.warning-box h5 {
    color: #fde047 !important;
}

.warning-box p {
    color: #fef08a !important;
}

.accordion {
    margin-bottom: 2rem;
}

.accordion h5 {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.accordion p {
    padding: 0 1rem;
}
