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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #b8ff00 0%, #00d9c0 50%, #0066ff 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#backgroundCanvas::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 1;
}

.main-container {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 40px 80px 40px;
}

.main-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-subtitle {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    margin: 5px 0 0 0;
}

.content-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.status-message {
    margin-bottom: 60px;
    text-align: center;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.status-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 200;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.status-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.03em;
}

.contact-box {
    margin-top: 50px;
    animation: fadeIn 2s ease-out;
    width: 100%;
}

.contact-label {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    opacity: 0.9;
    text-transform: uppercase;
}

.email {
    display: inline-block;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.02em;
}

.notification-box {
    margin-top: 50px;
    animation: fadeIn 2.5s ease-out;
    width: 100%;
}

.notification-label {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
}

.notification-text {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.85;
}

.notification-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.notification-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.notification-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.notification-form input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.notify-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.notify-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.notify-btn:active {
    transform: translateY(0);
}

.notification-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.notification-message.hidden {
    display: none;
}

.notification-message.success {
    background: rgba(100, 255, 150, 0.2);
    border: 1px solid rgba(100, 255, 150, 0.4);
}

.notification-message.error {
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.4);
}

.email:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.email:active {
    transform: translateY(-1px);
}

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

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100%;
        min-height: 100dvh;
    }

    body {
        display: block;
        align-items: stretch;
        justify-content: flex-start;
    }

    .main-container {
        min-height: 100dvh;
        padding: calc(70px + env(safe-area-inset-top, 0px)) 16px calc(56px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .site-header {
        padding: 12px 16px;
        padding-top: max(12px, env(safe-area-inset-top, 12px));
    }

    .logo-title {
        font-size: 1.25rem;
        letter-spacing: 0.02em;
        word-break: break-word;
    }

    .logo-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.04em;
    }

    .content-center {
        justify-content: center;
        padding: 8px 0;
        max-width: 100%;
    }

    .status-message {
        margin-bottom: 28px;
    }

    .status-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .status-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .status-description {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    .contact-box {
        margin-top: 28px;
    }

    .contact-label,
    .notification-label {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        margin-bottom: 10px;
    }

    .email {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
        padding: 14px 12px;
        word-break: break-all;
        box-sizing: border-box;
    }

    .notification-box {
        margin-top: 28px;
    }

    .notification-text {
        font-size: 0.85rem;
        margin-bottom: 14px;
        padding: 0 4px;
        line-height: 1.5;
    }

    .notification-form {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
        width: 100%;
    }

    .notification-form input[type="email"] {
        min-width: 0;
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .notify-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px;
    }

    .notification-message {
        font-size: 0.85rem;
        padding: 10px 14px;
    }

    .footer {
        bottom: max(10px, env(safe-area-inset-bottom, 10px));
        font-size: 0.75rem;
        padding: 0 12px;
    }

    .footer a {
        padding: 8px 10px;
        display: inline-block;
    }
}

@media (max-width: 380px) {
    .logo-title {
        font-size: 1.1rem;
    }

    .status-title {
        font-size: 1.4rem;
    }

    .email {
        font-size: 0.85rem;
        padding: 12px 10px;
    }
}

@media (max-height: 700px) and (min-width: 769px) {
    .status-message {
        margin-bottom: 40px;
    }
    
    .contact-box {
        margin-top: 30px;
    }
    
    .notification-box {
        margin-top: 30px;
    }
    
    .status-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
}

@media (max-height: 700px) and (max-width: 768px) {
    .main-container {
        justify-content: flex-start;
        padding-top: calc(76px + env(safe-area-inset-top, 0px));
    }

    .content-center {
        justify-content: flex-start;
        padding-top: 12px;
    }

    .status-message {
        margin-bottom: 20px;
    }

    .status-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .status-title {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .contact-box,
    .notification-box {
        margin-top: 20px;
    }
}

@media (hover: none) {
    .email:hover,
    .notify-btn:hover,
    .footer a:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    }

    .email:active,
    .notify-btn:active {
        background: rgba(255, 255, 255, 0.35);
        transform: scale(0.98);
    }
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.85rem;
    z-index: 10;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.footer a:hover {
    color: white;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.footer .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.legal-page {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    color: white;
    overflow-y: auto;
    height: 100vh;
}

.legal-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 200;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.legal-page h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 30px;
    margin-bottom: 15px;
    letter-spacing: 0.03em;
}

.legal-page h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-page p, .legal-page ul, .legal-page li {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 300;
}

.legal-page ul {
    margin-left: 20px;
}

.legal-page a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.legal-page a:hover {
    opacity: 0.8;
}

.legal-page .back-link {
    display: inline-block;
    margin-bottom: 30px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.legal-page .back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.legal-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 80px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 20px 16px;
        padding-top: max(20px, env(safe-area-inset-top, 20px));
        padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
        -webkit-overflow-scrolling: touch;
    }

    .legal-content {
        padding: 20px 16px;
        border-radius: 16px;
        margin-bottom: 40px;
    }
    
    .legal-page h1 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .legal-page h2 {
        font-size: 1.2rem;
        margin-top: 22px;
    }

    .legal-page h3 {
        font-size: 1.05rem;
    }

    .legal-page p,
    .legal-page ul,
    .legal-page li {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .legal-page .back-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 16px;
        margin-bottom: 20px;
    }
    
    .footer {
        font-size: 0.75rem;
        bottom: max(10px, env(safe-area-inset-bottom, 10px));
    }
}
