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


:root {
    --site-shell-max-width: 1100px;
    --site-page-gutter: clamp(12px, 2.4vw, 22px);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #374151 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--site-page-gutter);
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 36px;
    max-width: var(--site-shell-max-width);
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #475569;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.privacy-notice {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #374151;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.16);
}

.privacy-icon {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #374151;
    background: rgba(55, 65, 81, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-content strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.privacy-content p {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.6;
}

.tool-section {
    border: 2px solid #dbe4ef;
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
    margin-bottom: 16px;
}

.tool-section h2 {
    font-size: 20px;
    color: #374151;
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

select,
textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 44px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    resize: vertical;
    margin-bottom: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

textarea {
    line-height: 1.5;
}

select {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

select:focus,
textarea:focus {
    outline: none;
    border-color: #374151;
    box-shadow: 0 0 0 2px rgba(55, 65, 81, 0.15);
}

textarea[readonly] {
    background: #f8fafc;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.action-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.3);
}

.action-btn:focus-visible {
    outline: 3px solid rgba(55, 65, 81, 0.3);
    outline-offset: 2px;
}

.secondary-btn {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
    box-shadow: 0 6px 14px rgba(51, 65, 85, 0.25);
}

.status {
    min-height: 20px;
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    margin-bottom: 12px;
}

.hint {
    font-size: 13px;
    color: #64748b;
}

.footer-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

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

.footer-links a {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
}

.footer-links a:hover {
    background: #e2e8f0;
}

.back-btn {
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .container {
        padding: 24px;
    }

    h1 {
        font-size: 27px;
    }

    .actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

