@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 24px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 100;
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.lang-btn.active {
    color: #1a1a1a;
    background: #f0f0f0;
}

.lang-btn:hover {
    color: #1a1a1a;
}

.lang-sep {
    color: #ddd;
    font-size: 14px;
    user-select: none;
}

/* Main Content */
.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 120px 32px 80px;
}

/* Each Line Section */
.line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 22px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.5;
}

.line span {
    display: inline;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

/* Tooltip (shared for app badges and social links) */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* App Badge */
.app-badge {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.2s;
}

.app-badge:hover .app-icon {
    transform: scale(1.1);
}

/* Inline Logo */
.inline-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
}

/* Social Icons */
.social-icons {
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: gap 0.3s ease;
}

.social-icons:hover {
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: transform 0.25s ease;
    text-decoration: none;
    margin-left: -6px;
}

.social-link:first-child {
    margin-left: 0;
}

.social-icons:hover .social-link {
    margin-left: 0;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-icon {
    fill: currentColor;
}

.x-icon {
    color: #000;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 6px;
    width: 40px;
    height: 40px;
}

.ig-icon {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 10px;
    padding: 6px;
    width: 40px;
    height: 40px;
    color: #fff;
}

/* Links */
.link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.link:hover {
    opacity: 0.7;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 60px 0 40px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: #888;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #1a1a1a;
}

/* Legal page styles */
.legal-hero {
    padding-top: 40px;
}

.legal-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.legal-hero-media img {
    width: 100%;
    border-radius: 12px;
}

.legal-quote-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.accent {
    color: #6366f1;
}

.legal-quote-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.legal-content {
    padding-top: 60px;
}

.legal-block {
    margin-bottom: 32px;
}

.legal-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.legal-block p,
.legal-block li {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.legal-block ul {
    padding-left: 20px;
    margin-top: 8px;
}

.legal-block a {
    color: #6366f1;
    text-decoration: none;
}

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

/* Back to home link for legal */
.back-home {
    display: inline-block;
    margin-bottom: 40px;
    color: #6366f1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.back-home:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .content {
        padding: 100px 20px 60px;
    }

    .line {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .lang-switcher {
        top: 16px;
        right: 16px;
    }

    .legal-hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
}
