/* ============================================================
   Raia Footer v3.9.b — Legal & Sitemap Styles
   Modern · Clean · Friendly
   ============================================================ */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Sizes */
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-xs: 0.8125rem;
    --fs-h1: clamp(2rem, 4vw + 1rem, 3rem);
    --fs-h2: clamp(1.375rem, 2vw + 0.75rem, 1.75rem);
    --fs-h3: clamp(1.0625rem, 1.2vw + 0.5rem, 1.1875rem);

    /* Colors - Light */
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --link: #2563eb;
    --link-hover: #1d4ed8;
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --bg-subtle: #f4f4f5;
    --border: #e5e5e5;
    --border-strong: #d4d4d8;
    --divider: #e5e5e5;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --accent-border: rgba(37, 99, 235, 0.20);
    --accent-glow: rgba(37, 99, 235, 0.20);
    --success: #16a34a;
    --success-soft: rgba(22, 163, 74, 0.10);
    --success-border: rgba(22, 163, 74, 0.25);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.85);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --link: #60a5fa;
    --link-hover: #93c5fd;
    --bg: #09090b;
    --bg-elevated: #18181b;
    --bg-subtle: #27272a;
    --border: #27272a;
    --border-strong: #3f3f46;
    --divider: #27272a;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --accent-border: rgba(59, 130, 246, 0.25);
    --accent-glow: rgba(59, 130, 246, 0.25);
    --success-soft: rgba(34, 197, 94, 0.12);
    --success-border: rgba(34, 197, 94, 0.28);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(9, 9, 11, 0.85);
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 0.5em; }
h3 { font-size: var(--fs-h3); font-weight: 700; margin: 32px 0 12px; }
h4 { font-weight: 600; }

p { color: var(--text-secondary); margin-bottom: 1em; }
strong, b { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; }

a {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    border-bottom: 1px solid transparent;
}
a:hover {
    color: var(--link-hover);
    border-bottom-color: currentColor;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-subtle);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

ul, ol { padding-left: 1.25em; margin-bottom: 1em; }
li { color: var(--text-secondary); margin-bottom: 0.4em; }
li::marker { color: var(--accent); }

/* ---------- SKIP LINK ---------- */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 10000;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: var(--fs-small);
    padding: 10px 20px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    transition: top 0.2s ease;
    border: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--link-hover));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1000;
    will-change: transform;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 0 24px;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    border-bottom: none;
    flex-shrink: 0;
}
.logo:hover { border-bottom: none; opacity: 0.85; }
.logo img {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.header-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}
.header-nav a {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-bottom: none;
}
.header-nav a:hover {
    color: var(--accent);
    background: var(--accent-soft);
    border-bottom: none;
}
.header-nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: var(--font-sans);
    font-weight: 600;
}
.icon-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.icon-btn.lang-btn {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.hamburger:hover { background: var(--accent-soft); }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    z-index: 998;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.25s var(--ease-out) both;
}
.mobile-menu.open { display: block; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-menu a {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-bottom: none;
}
.mobile-menu a:hover, .mobile-menu a.active {
    color: var(--accent);
    background: var(--accent-soft);
    border-bottom: none;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ---------- HERO ---------- */
.hero {
    text-align: center;
    padding: 120px 0 32px;
}
.hero-title { margin-bottom: 12px; }
.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.6;
}
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 8px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--success-soft);
    color: var(--success);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---------- ABOUT CARD ---------- */
.about-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.about-icon {
    width: 44px; height: 44px;
    min-width: 44px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.about-body h2 { font-size: 1.125rem; margin-bottom: 6px; }
.about-body p { margin-bottom: 0; font-size: 0.9375rem; }

/* ---------- TABLIST ---------- */
.tablist-wrapper { margin-bottom: 28px; }
.tablist {
    display: flex;
    gap: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 5px;
    list-style: none;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}
.tablist li { flex: 1; min-width: 80px; margin: 0; }
.tab-btn {
    width: 100%;
    padding: 11px 14px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--fs-small);
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.tab-btn:hover { background: var(--accent-soft); color: var(--accent); }
.tab-btn[aria-selected="true"] {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tabpanel { display: none; }
.tabpanel[aria-hidden="false"] {
    display: block;
    animation: fadeUp 0.35s var(--ease-out) both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- CARD ---------- */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow); }

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--divider);
    flex-wrap: wrap;
}
.card-icon {
    width: 52px; height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.card-header h2 { font-size: 1.375rem; margin-bottom: 2px; }
.card-header .meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.lead {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25em;
}

/* Friendly list */
.friendly-list { list-style: none; padding-left: 0; }
.friendly-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    line-height: 1.7;
}
.friendly-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Credit box */
.credit-box {
    background: var(--bg-subtle);
    border-left: 3px solid var(--accent);
    padding: 14px 20px;
    font-family: var(--font-mono);
    font-size: var(--fs-small);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

/* Callout */
.callout {
    display: flex;
    gap: 12px;
    padding: 16px 22px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.9375rem;
    position: relative;
}
.callout-success {
    background: var(--success-soft);
    border: 1px solid var(--success-border);
}
.callout .copy-text {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-primary);
    margin: 0;
}
.callout i.fa-circle-check,
.callout i.fa-gavel {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Copy button */
.copy-container { position: relative; }
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.75rem;
    z-index: 2;
}
.copy-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.copy-btn.copied {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

/* ---------- SITEMAP ---------- */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin: 20px 0;
}
.sitemap-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    transition: var(--transition);
    display: block;
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}
.sitemap-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background: var(--bg-elevated);
    border-bottom: none;
}
.sitemap-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}
.sitemap-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.sitemap-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    transition: var(--transition);
    display: block;
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-bottom: none;
}
.project-card .p-icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.project-card .p-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: block;
}
.project-card .p-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.social-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}
.social-list li {
    padding: 0;
    margin: 0;
}
.social-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--fs-small);
    font-weight: 500;
    transition: var(--transition);
    border-bottom: none;
}
.social-list a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
    border-bottom: none;
}
.social-list i { font-size: 1rem; }

/* Changelog */
.changelog {
    background: var(--bg);
    border-left: 3px solid var(--accent);
    padding: 22px 26px;
    border-radius: var(--radius-sm);
    margin-top: 24px;
}
.changelog h3 { margin-top: 0; font-size: 1rem; }
.changelog ul { padding-left: 18px; margin-bottom: 0; }
.changelog li { font-size: 0.875rem; }

/* ---------- COOKIE TABLE ---------- */
.cookie-table-wrap {
    overflow-x: auto;
    margin: 18px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-small);
    min-width: 480px;
}
.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--divider);
    vertical-align: top;
}
.cookie-table th {
    background: var(--bg-subtle);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table td { color: var(--text-secondary); }
.cookie-table code {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: var(--bg-elevated);
}
.badge-cookie {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    margin-top: 64px;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.footer-logo img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.footer-ecosystem {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}
.footer-ecosystem a {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: none;
}
.footer-ecosystem a:hover { color: var(--accent); border-bottom: none; }

.footer-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    border-bottom: none;
}
.footer-nav a:hover { color: var(--accent); border-bottom: none; }

.footer-bottom {
    font-size: var(--fs-small);
    color: var(--text-muted);
    border-top: 1px solid var(--divider);
    padding-top: 22px;
    margin-top: 4px;
    width: 100%;
}
.footer-bottom p { color: var(--text-muted); margin-bottom: 6px; }
.footer-disclaimer {
    font-size: 0.8125rem;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .container { padding: 0 20px; }
    .card { padding: 28px 24px; }
    .hero { padding: 100px 0 24px; }
}

@media (max-width: 600px) {
    .header { padding: 0 16px; }
    .container { padding: 0 16px; }
    .hero { padding: 92px 0 20px; }
    .card { padding: 22px 18px; border-radius: 16px; }
    .card-header { gap: 12px; }
    .card-icon { width: 44px; height: 44px; min-width: 44px; font-size: 1rem; }
    .about-card { padding: 18px; gap: 14px; }
    .tablist { flex-direction: column; }
    .tab-btn { justify-content: flex-start; padding: 10px 14px; }
    .sitemap-grid { grid-template-columns: 1fr 1fr; }
    .project-grid { grid-template-columns: 1fr 1fr; }
    .social-list { grid-template-columns: 1fr; }
    .version-badge { font-size: 0.75rem; padding: 6px 12px; flex-wrap: wrap; justify-content: center; }
    .cookie-table { min-width: 400px; font-size: 0.75rem; }
    .cookie-table th, .cookie-table td { padding: 10px 12px; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
    .footer { padding: 36px 0 24px; margin-top: 48px; }
    .changelog { padding: 18px 20px; }
}

@media (max-width: 400px) {
    .sitemap-grid { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .icon-btn { width: 36px; height: 36px; min-width: 36px; font-size: 0.8rem; }
    .copy-btn { width: 26px; height: 26px; font-size: 0.7rem; }
}

/* ---------- FOCUS ---------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .tabpanel { animation: none !important; }
    .mobile-menu { animation: none !important; }
    .dot { animation: none !important; }
}

/* ---------- PRINT ---------- */
@media print {
    .progress-bar, .back-to-top, .header-actions,
    .skip-link, .tablist, .hamburger, .mobile-menu,
    .copy-btn { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .card, .about-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        background: #fff !important;
        break-inside: avoid;
    }
    .header { position: static !important; background: #fff !important; }
    .tabpanel { display: block !important; }
    .footer { background: #f9f9f9 !important; border-top: 1px solid #ddd !important; }
}