@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

/* ==========================================================================
   OTABI ROUTE - LEGAL INFORMATION & OFFICIAL COMPANY PROFILE
   Design matched to official Japanese regulatory compliance reference
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Container & Wrapper
   -------------------------------------------------------------------------- */
.legal-page-wrapper {
    background-color: #ffffff;
    color: var(--text-main, #0f172a);
    font-family: var(--font-main, 'Josefin Sans', 'Noto Sans JP', sans-serif);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

[data-theme="dark"] .legal-page-wrapper {
    background-color: #0b1120;
    color: #f1f5f9;
}

.legal-content-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* --------------------------------------------------------------------------
   Hero Section with Mount Fuji & Chureito Pagoda
   -------------------------------------------------------------------------- */
.legal-hero {
    position: relative;
    min-height: 420px;
    background-image: url('../images/hero/hero_fuji_pagoda.jpg');
    background-position: center 36%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.legal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.72) 0%,
        rgba(15, 23, 42, 0.52) 45%,
        rgba(15, 23, 42, 0.25) 80%,
        rgba(15, 23, 42, 0.4) 100%
    );
    z-index: 1;
}

.legal-hero-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 5.5rem;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.legal-hero-text {
    max-width: 680px;
}

/* Glassmorphic Pill Badge */
.legal-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.legal-hero-pill i {
    font-size: 0.85rem;
    color: #60a5fa;
}

/* Hero Title */
.legal-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* Hero Subtitle */
.legal-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Crimson Accent Bar */
.legal-hero-bar {
    width: 48px;
    height: 4px;
    background: var(--crimson, #d90429);
    border-radius: 2px;
}

/* Calligraphy Badge "Japan Awaits" */
.legal-hero-callout {
    font-family: 'Caveat', 'Playfair Display', Georgia, cursive, serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    transform: rotate(-6deg);
    padding-bottom: 0.5rem;
    white-space: nowrap;
    user-select: none;
}

/* Wave Divider at Bottom of Hero */
.legal-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.legal-hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 42px;
}

.legal-hero-wave path {
    fill: #ffffff;
}

[data-theme="dark"] .legal-hero-wave path {
    fill: #0b1120;
}

/* --------------------------------------------------------------------------
   Introduction & Showcase Media Card Grid
   -------------------------------------------------------------------------- */
.legal-intro-section {
    padding: 3.5rem 0 2.5rem;
}

.legal-intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.legal-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--crimson, #d90429);
    margin-bottom: 0.65rem;
}

.legal-intro-heading {
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 1.2rem 0;
}

[data-theme="dark"] .legal-intro-heading {
    color: #f8fafc;
}

.legal-intro-desc {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 2rem;
}

[data-theme="dark"] .legal-intro-desc {
    color: #94a3b8;
}

/* 4 Trust Badges */
.legal-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.legal-trust-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem 0.6rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

[data-theme="dark"] .legal-trust-badge {
    background: #1e293b;
    border-color: #334155;
}

.legal-trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
    border-color: #93c5fd;
}

.legal-trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
    transition: transform 0.25s;
}

[data-theme="dark"] .legal-trust-icon-box {
    background: rgba(37, 99, 235, 0.18);
    color: #60a5fa;
}

.legal-trust-badge:hover .legal-trust-icon-box {
    transform: scale(1.1);
}

.legal-trust-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

[data-theme="dark"] .legal-trust-label {
    color: #f1f5f9;
}

/* Floating Showcase Media Card */
.legal-showcase-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Decorative background circle / enso */
.legal-showcase-deco {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 14px solid rgba(244, 63, 94, 0.18);
    top: -24px;
    left: 20px;
    z-index: 0;
    pointer-events: none;
}

.legal-showcase-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 16 / 10.5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 5px solid #ffffff;
    cursor: pointer;
    background-color: #0f172a;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

[data-theme="dark"] .legal-showcase-card {
    border-color: #334155;
}

.legal-showcase-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.22);
}

.legal-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-showcase-card:hover .legal-showcase-img {
    transform: scale(1.05);
}

.legal-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play Button */
.legal-play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
}

.legal-play-btn i {
    margin-left: 3px;
}

.legal-showcase-card:hover .legal-play-btn {
    transform: scale(1.15);
    background: #ffffff;
    color: var(--crimson, #d90429);
}

/* Explore Japan Script Callout */
.legal-showcase-callout {
    position: absolute;
    bottom: 0.85rem;
    right: 1.25rem;
    font-family: 'Caveat', 'Playfair Display', Georgia, cursive, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    user-select: none;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Section: Business Overview & Trade Identity
   -------------------------------------------------------------------------- */
.legal-section-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 3.5rem 0 1.5rem;
}

.legal-section-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.legal-section-title {
    font-size: clamp(1.25rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin: 0;
}

[data-theme="dark"] .legal-section-title {
    color: #f8fafc;
}

/* Specification Table / Card */
.legal-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

[data-theme="dark"] .legal-table-card {
    background: #111827;
    border-color: #273549;
}

.legal-table-row {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.6rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

[data-theme="dark"] .legal-table-row {
    border-bottom-color: #1e293b;
}

.legal-table-row:last-child {
    border-bottom: none;
}

.legal-table-row:hover {
    background: #f8fafc;
}

[data-theme="dark"] .legal-table-row:hover {
    background: #1a2234;
}

.legal-table-label-col {
    flex: 0 0 34%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    font-size: 0.94rem;
    color: #1e293b;
}

[data-theme="dark"] .legal-table-label-col {
    color: #f1f5f9;
}

.legal-row-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.legal-row-icon-blue    { background: #eff6ff; color: #0284c7; }
.legal-row-icon-teal    { background: #ecfdf5; color: #059669; }
.legal-row-icon-indigo  { background: #e0e7ff; color: #4f46e5; }
.legal-row-icon-rose    { background: #ffe4e6; color: #e11d48; }
.legal-row-icon-green   { background: #dcfce7; color: #16a34a; }
.legal-row-icon-amber   { background: #ffedd5; color: #ea580c; }

[data-theme="dark"] .legal-row-icon-blue    { background: rgba(2, 132, 199, 0.2); color: #38bdf8; }
[data-theme="dark"] .legal-row-icon-teal    { background: rgba(5, 150, 105, 0.2); color: #34d399; }
[data-theme="dark"] .legal-row-icon-indigo  { background: rgba(79, 70, 229, 0.2); color: #818cf8; }
[data-theme="dark"] .legal-row-icon-rose    { background: rgba(225, 29, 72, 0.2); color: #fb7185; }
[data-theme="dark"] .legal-row-icon-green   { background: rgba(22, 163, 74, 0.2); color: #4ade80; }
[data-theme="dark"] .legal-row-icon-amber   { background: rgba(234, 88, 12, 0.2); color: #fb923c; }

.legal-table-value-col {
    flex: 1;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.55;
}

[data-theme="dark"] .legal-table-value-col {
    color: #cbd5e1;
}

.legal-table-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.legal-table-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Compliance & Legal Sections
   -------------------------------------------------------------------------- */
.legal-compliance-list {
    margin: 2.75rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-compliance-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.legal-compliance-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 3px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.legal-compliance-content {
    flex: 1;
}

.legal-compliance-heading {
    font-size: clamp(1.15rem, 2vw, 1.3rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 0.65rem 0;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .legal-compliance-heading {
    color: #f8fafc;
}

.legal-compliance-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #475569;
    margin: 0 0 0.75rem 0;
}

[data-theme="dark"] .legal-compliance-text {
    color: #94a3b8;
}

.legal-compliance-text:last-child {
    margin-bottom: 0;
}

.legal-compliance-text strong {
    font-weight: 700;
    color: #0f172a;
}

[data-theme="dark"] .legal-compliance-text strong {
    color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Key Service Standards & Highlights Box
   -------------------------------------------------------------------------- */
.legal-standards-box {
    background: #f0f7ff;
    border: 1.5px solid #dbeafe;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin: 3.5rem 0 2.5rem;
}

[data-theme="dark"] .legal-standards-box {
    background: rgba(30, 58, 138, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.legal-standards-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
}

.legal-standards-header i {
    color: #2563eb;
    font-size: 1.15rem;
}

.legal-standards-title {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 800;
    color: #1e3a8a;
    margin: 0;
}

[data-theme="dark"] .legal-standards-title {
    color: #93c5fd;
}

.legal-standards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.legal-standard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.35rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s, box-shadow 0.25s;
}

[data-theme="dark"] .legal-standard-card {
    background: #1e293b;
    border-color: #334155;
}

.legal-standard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.legal-standard-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.legal-standard-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.legal-icon-rose  { background: #fee2e2; color: #ef4444; }
.legal-icon-blue  { background: #dbeafe; color: #2563eb; }
.legal-icon-green { background: #dcfce7; color: #16a34a; }

[data-theme="dark"] .legal-icon-rose  { background: rgba(239, 68, 68, 0.2); color: #f87171; }
[data-theme="dark"] .legal-icon-blue  { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
[data-theme="dark"] .legal-icon-green { background: rgba(22, 163, 74, 0.2); color: #4ade80; }

.legal-standard-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
}

[data-theme="dark"] .legal-standard-card-title {
    color: #f1f5f9;
}

.legal-standard-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

[data-theme="dark"] .legal-standard-card-desc {
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Immediate Concierge Assistance on WhatsApp Banner
   -------------------------------------------------------------------------- */
.legal-whatsapp-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 55%, #e6fcf5 100%);
    border: 1.5px solid #86efac;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 2.5rem 0;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.08);
}

[data-theme="dark"] .legal-whatsapp-banner {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.35) 0%, rgba(6, 95, 70, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.4);
}

.legal-whatsapp-left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    z-index: 2;
    position: relative;
}

.legal-whatsapp-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.legal-whatsapp-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

[data-theme="dark"] .legal-whatsapp-title {
    color: #f8fafc;
}

.legal-whatsapp-subtitle {
    font-size: 0.88rem;
    color: #475569;
    margin: 0;
}

[data-theme="dark"] .legal-whatsapp-subtitle {
    color: #cbd5e1;
}

.legal-whatsapp-subtitle strong {
    color: #0f172a;
    font-weight: 700;
}

[data-theme="dark"] .legal-whatsapp-subtitle strong {
    color: #ffffff;
}

.legal-whatsapp-btn {
    background: #22c55e;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.94rem;
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    position: relative;
    white-space: nowrap;
}

.legal-whatsapp-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
    color: #ffffff;
}

/* Background Watermark Illustration */
.legal-whatsapp-watermark {
    position: absolute;
    right: 1.5rem;
    bottom: -15px;
    height: 120px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}

/* Sakura Flower Accent */
.legal-whatsapp-sakura {
    position: absolute;
    left: -8px;
    bottom: -8px;
    font-size: 1.8rem;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Footer Navigation Pill Buttons & Divider
   -------------------------------------------------------------------------- */
.legal-footer-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
    margin-bottom: 2.25rem;
}

.legal-nav-btn {
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem 1.7rem;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-nav-btn i.fa-chevron-right {
    font-size: 0.72rem;
    margin-left: 2px;
    transition: transform 0.2s;
}

.legal-nav-btn:hover i.fa-chevron-right {
    transform: translateX(3px);
}

.legal-btn-primary {
    background: var(--crimson, #d90429);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 4, 41, 0.3);
    border: 1.5px solid var(--crimson, #d90429);
}

.legal-btn-primary:hover {
    background: #ef233c;
    border-color: #ef233c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 4, 41, 0.4);
}

.legal-btn-secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .legal-btn-secondary {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}

.legal-btn-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .legal-btn-secondary:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

/* Brand Sign-off Divider */
.legal-brand-divider {
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.legal-brand-divider-line {
    width: 28px;
    height: 1.5px;
    background: #cbd5e1;
}

[data-theme="dark"] .legal-brand-divider-line {
    background: #334155;
}

/* Japanese Seigaiha Waves Bottom Motif */
.legal-seigaiha-motif {
    width: 100%;
    height: 38px;
    background-repeat: repeat-x;
    background-position: center bottom;
    opacity: 0.35;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .legal-seigaiha-motif {
    opacity: 0.15;
}

/* --------------------------------------------------------------------------
   Modal for Japan Video Showcase
   -------------------------------------------------------------------------- */
.legal-video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.legal-video-modal-card {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-video-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.legal-video-close-btn:hover {
    background: var(--crimson, #d90429);
    transform: scale(1.08);
}

.legal-video-frame-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.legal-video-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .legal-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .legal-showcase-wrapper {
        margin-top: 1rem;
    }

    .legal-showcase-card {
        max-width: 520px;
    }

    .legal-standards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .legal-table-label-col {
        flex: 0 0 40%;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        min-height: 380px;
        background-position: center 30%;
    }

    .legal-hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-top: 3rem;
        padding-bottom: 4.5rem;
    }

    .legal-hero-callout {
        align-self: flex-end;
        font-size: 1.6rem;
    }

    .legal-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .legal-table-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
        padding: 1rem 1.25rem;
    }

    .legal-table-label-col {
        flex: none;
        width: 100%;
    }

    .legal-table-value-col {
        width: 100%;
        padding-left: 2.75rem;
    }

    .legal-whatsapp-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .legal-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }

    .legal-footer-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-nav-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .legal-hero-title {
        font-size: 2rem;
    }

    .legal-intro-heading {
        font-size: 1.45rem;
    }

    .legal-compliance-item {
        gap: 0.85rem;
    }

    .legal-compliance-icon-badge {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}
