/* =============================================
   Legal pages — shared styles
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
    --bg: #0A0E1A;
    --surface: #141929;
    --surface-light: #1E2640;
    --border: #2A3350;
    --text-primary: #EAEDF5;
    --text-secondary: #8B95B0;
    --text-tertiary: #5A6480;
    --gold: #F0C040;
    --gold-dark: #E0A020;
    --cyan: #00E5FF;
    --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover {
    opacity: 0.8;
}

/* Header */
.legal-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}
.legal-header__logo {
    height: 32px;
    width: auto;
}
.legal-header__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 500;
}
.legal-header__back svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Content */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.legal-content h1 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.legal-updated {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

/* Sections */
.legal-section {
    margin-bottom: 32px;
}
.legal-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 3px solid var(--gold);
}
.legal-section p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.9;
    white-space: pre-line;
}
.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}
.legal-section ul li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.9;
    padding-left: 1.2em;
    position: relative;
}
.legal-section ul li::before {
    content: '・';
    position: absolute;
    left: 0;
}

/* Footer */
.legal-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 20px;
    text-align: center;
}
.legal-footer__logo {
    height: 28px;
    margin: 0 auto 12px;
    display: block;
    opacity: 0.6;
}
.legal-footer__links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.legal-footer__links a {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}
.legal-footer__links a:hover {
    color: var(--text-primary);
}
.legal-footer__links a.is-current {
    color: var(--text-primary);
    font-weight: 700;
}
.legal-footer__copy {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* Contact form */
.contact-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-group label .required {
    font-size: 0.7rem;
    color: #FF4060;
    margin-left: 6px;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}
.form-group textarea {
    min-height: 160px;
    resize: vertical;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B95B0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.form-group select option {
    background: var(--surface);
    color: var(--text-primary);
}
.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 24px rgba(240, 192, 64, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(240, 192, 64, 0.5);
}
.form-note {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 16px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 28px 16px 60px;
    }
    .legal-content h1 {
        font-size: 1.3rem;
    }
    .legal-footer__links {
        flex-direction: column;
        gap: 10px;
    }
}
