/* ========================================
   Legal Pages (terms.php / privacy.php)
   ======================================== */

/* --- Header --- */
.legal-header {
	background: var(--color-white);
	border-bottom: 3px solid var(--color-teal);
}

.legal-header__inner {
	display: flex;
	justify-content: center;
	padding: 1.2em 0;
}

/* --- Main Content --- */
.legal-main {
	background: var(--color-base);
	padding: 3em 0 5em;
}

.legal-main__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 2.5em 3em;
	background: var(--color-white);
	border: 1px solid #e2e8f0;
}

.legal-main__title {
	font-family: var(--font-heading);
	font-size: 1.8em;
	font-weight: 800;
	color: var(--color-text);
	text-align: center;
	margin-bottom: 0.2em;
}

.legal-main__meta {
	text-align: center;
	font-size: 0.9em;
	color: #666;
	margin-bottom: 2.5em;
}

/* --- Sections --- */
.legal-section {
	margin-bottom: 2em;
}

.legal-section h2 {
	font-size: 1.1em;
	font-weight: 700;
	color: var(--color-teal);
	margin-bottom: 0.5em;
	padding-bottom: 0.3em;
	border-bottom: 1px solid #e2e8f0;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
	font-size: 0.95em;
	line-height: 1.9;
}

.legal-section ul,
.legal-section ol {
	padding-left: 1.5em;
	margin-top: 0.5em;
}

.legal-section li {
	margin-bottom: 0.3em;
}

/* Sub-lists (号番号) */
.legal-sub-list {
	list-style: none;
	padding-left: 1.5em;
}

.legal-sub-list > li::before {
	content: "(" counter(sub-item) ") ";
	counter-increment: sub-item;
}

.legal-sub-list {
	counter-reset: sub-item;
}

/* Section sub-headings (PP用) */
.legal-section h3 {
	font-size: 0.95em;
	font-weight: 700;
	color: var(--color-text);
	margin: 1.2em 0 0.3em;
}

/* Tables (事業者情報等) */
.legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
	margin-top: 0.5em;
}

.legal-table th,
.legal-table td {
	padding: 0.5em 0.8em;
	border: 1px solid #e2e8f0;
	text-align: left;
}

.legal-table th {
	background: var(--color-base);
	white-space: nowrap;
	width: 10em;
}

/* --- Footer --- */
.legal-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5em;
	padding: 1.2em 0;
	background: var(--color-white);
}

.legal-footer__logo {
	width: 80px;
	height: auto;
}
