:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --accent: #3498db;
    --accent-hover: #2980b9;
    --border: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.08);
    --selection: rgba(52, 152, 219, 0.2);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --accent: #74b9ff;
    --accent-hover: #0984e3;
    --border: #495057;
    --shadow: rgba(255, 255, 255, 0.05);
    --selection: rgba(116, 185, 255, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.header-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.gdpr-logo {
    width: 96px;
    height: auto;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.title {
    background: linear-gradient(135deg, var(--accent) 0%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.navigation {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--accent);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--accent);
    color: white;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.theme-toggle, .lang-select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.theme-toggle:hover, .lang-select:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.content-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.content-section h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.content-section h3 {
    color: var(--text-primary);
    margin: 20px 0 10px 0;
    font-size: 1.3rem;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.content-section ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.content-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

.service-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.service-card a {
    color: var(--accent);
    text-decoration: none;
}

.service-card a:hover {
    text-decoration: underline;
}

.info-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.info-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.social-examples {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.privacy-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.editor-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    overflow: hidden;
    margin-bottom: 15px;
}

.toolbar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
    gap: 4px;
}

.toolbar button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.toolbar button:hover {
    background: var(--border);
    border-color: var(--border);
}

.toolbar button.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.toolbar .separator {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 6px;
}

.editor-wrapper {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.8;
}

.copy-btn:hover {
    opacity: 1;
    background: var(--accent-hover);
}

.copy-btn.success {
    background: #27ae60;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-primary);
    z-index: 5;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #9b59b6);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

.editor {
    width: 100%;
    min-height: 300px;
    padding: 15px 20px 20px 20px;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    border: none;
    background: transparent;
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
}

.footer {
    text-align: center;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 12px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.contact-box {
    text-align: center;
    padding: 40px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin: 20px 0;
}

.contact-box .email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    padding: 15px 30px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-box .email-link:hover {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .header-with-logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .gdpr-logo {
        width: 64px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .toolbar {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}